ESPHome 2025.5.0
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 {
12namespace light {
13
15 public:
17 static void dump_json(LightState &state, JsonObject root);
19 static void parse_json(LightState &state, LightCall &call, JsonObject root);
20
21 protected:
22 static void parse_color_json(LightState &state, LightCall &call, JsonObject root);
23};
24
25} // namespace light
26} // namespace esphome
27
28#endif
This class represents a requested change in a light state.
Definition light_call.h:14
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:63
bool state
Definition fan.h:0
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7