ESPHome 2025.12.3
Loading...
Searching...
No Matches
light_json_schema.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_JSON
6
8#include "light_call.h"
9#include "light_state.h"
10
11namespace esphome::light {
12
14 public:
16 static void dump_json(LightState &state, JsonObject root);
18 static void parse_json(LightState &state, LightCall &call, JsonObject root);
19
20 protected:
21 static void parse_color_json(LightState &state, LightCall &call, JsonObject root);
22};
23
24} // namespace esphome::light
25
26#endif
This class represents a requested change in a light state.
Definition light_call.h:21
static void parse_color_json(LightState &state, LightCall &call, JsonObject root)
static void parse_json(LightState &state, LightCall &call, JsonObject root)
Parse the JSON state of a light to a LightCall.
static void dump_json(LightState &state, JsonObject root)
Dump the state of a light as JSON.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition light_state.h:91
bool state
Definition fan.h:0