ESPHome  2024.12.2
Static Public Member Functions | Static Protected Member Functions
esphome::light::LightJSONSchema Class Reference

#include <light_json_schema.h>

Static Public Member Functions

static void dump_json (LightState &state, JsonObject root)
 Dump the state of a light as JSON. More...
 
static void parse_json (LightState &state, LightCall &call, JsonObject root)
 Parse the JSON state of a light to a LightCall. More...
 

Static Protected Member Functions

static void parse_color_json (LightState &state, LightCall &call, JsonObject root)
 

Detailed Description

Definition at line 14 of file light_json_schema.h.

Member Function Documentation

◆ dump_json()

void esphome::light::LightJSONSchema::dump_json ( LightState state,
JsonObject  root 
)
static

Dump the state of a light as JSON.

Definition at line 11 of file light_json_schema.cpp.

◆ parse_color_json()

void esphome::light::LightJSONSchema::parse_color_json ( LightState state,
LightCall call,
JsonObject  root 
)
staticprotected

Definition at line 75 of file light_json_schema.cpp.

◆ parse_json()

void esphome::light::LightJSONSchema::parse_json ( LightState state,
LightCall call,
JsonObject  root 
)
static

Parse the JSON state of a light to a LightCall.

Definition at line 143 of file light_json_schema.cpp.


The documentation for this class was generated from the following files: