ESPHome  2023.3.1
api_pb2.h
Go to the documentation of this file.
1 // This file was automatically generated with a tool.
2 // See scripts/api_protobuf/api_protobuf.py
3 #pragma once
4 
5 #include "proto.h"
6 
7 namespace esphome {
8 namespace api {
9 
10 namespace enums {
11 
12 enum EntityCategory : uint32_t {
16 };
17 enum LegacyCoverState : uint32_t {
20 };
21 enum CoverOperation : uint32_t {
25 };
26 enum LegacyCoverCommand : uint32_t {
30 };
31 enum FanSpeed : uint32_t {
35 };
36 enum FanDirection : uint32_t {
39 };
40 enum ColorMode : uint32_t {
51 };
52 enum SensorStateClass : uint32_t {
57 };
58 enum SensorLastResetType : uint32_t {
62 };
63 enum LogLevel : uint32_t {
72 };
73 enum ServiceArgType : uint32_t {
82 };
83 enum ClimateMode : uint32_t {
91 };
92 enum ClimateFanMode : uint32_t {
103 };
104 enum ClimateSwingMode : uint32_t {
109 };
110 enum ClimateAction : uint32_t {
117 };
118 enum ClimatePreset : uint32_t {
127 };
128 enum NumberMode : uint32_t {
132 };
133 enum LockState : uint32_t {
140 };
141 enum LockCommand : uint32_t {
145 };
146 enum MediaPlayerState : uint32_t {
151 };
152 enum MediaPlayerCommand : uint32_t {
158 };
159 enum BluetoothDeviceRequestType : uint32_t {
166 };
167 
168 } // namespace enums
169 
170 class HelloRequest : public ProtoMessage {
171  public:
172  std::string client_info{};
173  uint32_t api_version_major{0};
174  uint32_t api_version_minor{0};
175  void encode(ProtoWriteBuffer buffer) const override;
176 #ifdef HAS_PROTO_MESSAGE_DUMP
177  void dump_to(std::string &out) const override;
178 #endif
179 
180  protected:
181  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
182  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
183 };
184 class HelloResponse : public ProtoMessage {
185  public:
186  uint32_t api_version_major{0};
187  uint32_t api_version_minor{0};
188  std::string server_info{};
189  std::string name{};
190  void encode(ProtoWriteBuffer buffer) const override;
191 #ifdef HAS_PROTO_MESSAGE_DUMP
192  void dump_to(std::string &out) const override;
193 #endif
194 
195  protected:
196  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
197  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
198 };
199 class ConnectRequest : public ProtoMessage {
200  public:
201  std::string password{};
202  void encode(ProtoWriteBuffer buffer) const override;
203 #ifdef HAS_PROTO_MESSAGE_DUMP
204  void dump_to(std::string &out) const override;
205 #endif
206 
207  protected:
208  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
209 };
211  public:
212  bool invalid_password{false};
213  void encode(ProtoWriteBuffer buffer) const override;
214 #ifdef HAS_PROTO_MESSAGE_DUMP
215  void dump_to(std::string &out) const override;
216 #endif
217 
218  protected:
219  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
220 };
222  public:
223  void encode(ProtoWriteBuffer buffer) const override;
224 #ifdef HAS_PROTO_MESSAGE_DUMP
225  void dump_to(std::string &out) const override;
226 #endif
227 
228  protected:
229 };
231  public:
232  void encode(ProtoWriteBuffer buffer) const override;
233 #ifdef HAS_PROTO_MESSAGE_DUMP
234  void dump_to(std::string &out) const override;
235 #endif
236 
237  protected:
238 };
239 class PingRequest : public ProtoMessage {
240  public:
241  void encode(ProtoWriteBuffer buffer) const override;
242 #ifdef HAS_PROTO_MESSAGE_DUMP
243  void dump_to(std::string &out) const override;
244 #endif
245 
246  protected:
247 };
248 class PingResponse : public ProtoMessage {
249  public:
250  void encode(ProtoWriteBuffer buffer) const override;
251 #ifdef HAS_PROTO_MESSAGE_DUMP
252  void dump_to(std::string &out) const override;
253 #endif
254 
255  protected:
256 };
258  public:
259  void encode(ProtoWriteBuffer buffer) const override;
260 #ifdef HAS_PROTO_MESSAGE_DUMP
261  void dump_to(std::string &out) const override;
262 #endif
263 
264  protected:
265 };
267  public:
268  bool uses_password{false};
269  std::string name{};
270  std::string mac_address{};
271  std::string esphome_version{};
272  std::string compilation_time{};
273  std::string model{};
274  bool has_deep_sleep{false};
275  std::string project_name{};
276  std::string project_version{};
277  uint32_t webserver_port{0};
278  uint32_t bluetooth_proxy_version{0};
279  std::string manufacturer{};
280  std::string friendly_name{};
281  void encode(ProtoWriteBuffer buffer) const override;
282 #ifdef HAS_PROTO_MESSAGE_DUMP
283  void dump_to(std::string &out) const override;
284 #endif
285 
286  protected:
287  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
288  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
289 };
291  public:
292  void encode(ProtoWriteBuffer buffer) const override;
293 #ifdef HAS_PROTO_MESSAGE_DUMP
294  void dump_to(std::string &out) const override;
295 #endif
296 
297  protected:
298 };
300  public:
301  void encode(ProtoWriteBuffer buffer) const override;
302 #ifdef HAS_PROTO_MESSAGE_DUMP
303  void dump_to(std::string &out) const override;
304 #endif
305 
306  protected:
307 };
309  public:
310  void encode(ProtoWriteBuffer buffer) const override;
311 #ifdef HAS_PROTO_MESSAGE_DUMP
312  void dump_to(std::string &out) const override;
313 #endif
314 
315  protected:
316 };
318  public:
319  std::string object_id{};
320  uint32_t key{0};
321  std::string name{};
322  std::string unique_id{};
323  std::string device_class{};
324  bool is_status_binary_sensor{false};
325  bool disabled_by_default{false};
326  std::string icon{};
327  enums::EntityCategory entity_category{};
328  void encode(ProtoWriteBuffer buffer) const override;
329 #ifdef HAS_PROTO_MESSAGE_DUMP
330  void dump_to(std::string &out) const override;
331 #endif
332 
333  protected:
334  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
335  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
336  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
337 };
339  public:
340  uint32_t key{0};
341  bool state{false};
342  bool missing_state{false};
343  void encode(ProtoWriteBuffer buffer) const override;
344 #ifdef HAS_PROTO_MESSAGE_DUMP
345  void dump_to(std::string &out) const override;
346 #endif
347 
348  protected:
349  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
350  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
351 };
353  public:
354  std::string object_id{};
355  uint32_t key{0};
356  std::string name{};
357  std::string unique_id{};
358  bool assumed_state{false};
359  bool supports_position{false};
360  bool supports_tilt{false};
361  std::string device_class{};
362  bool disabled_by_default{false};
363  std::string icon{};
364  enums::EntityCategory entity_category{};
365  void encode(ProtoWriteBuffer buffer) const override;
366 #ifdef HAS_PROTO_MESSAGE_DUMP
367  void dump_to(std::string &out) const override;
368 #endif
369 
370  protected:
371  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
372  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
373  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
374 };
376  public:
377  uint32_t key{0};
378  enums::LegacyCoverState legacy_state{};
379  float position{0.0f};
380  float tilt{0.0f};
381  enums::CoverOperation current_operation{};
382  void encode(ProtoWriteBuffer buffer) const override;
383 #ifdef HAS_PROTO_MESSAGE_DUMP
384  void dump_to(std::string &out) const override;
385 #endif
386 
387  protected:
388  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
389  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
390 };
392  public:
393  uint32_t key{0};
394  bool has_legacy_command{false};
395  enums::LegacyCoverCommand legacy_command{};
396  bool has_position{false};
397  float position{0.0f};
398  bool has_tilt{false};
399  float tilt{0.0f};
400  bool stop{false};
401  void encode(ProtoWriteBuffer buffer) const override;
402 #ifdef HAS_PROTO_MESSAGE_DUMP
403  void dump_to(std::string &out) const override;
404 #endif
405 
406  protected:
407  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
408  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
409 };
411  public:
412  std::string object_id{};
413  uint32_t key{0};
414  std::string name{};
415  std::string unique_id{};
416  bool supports_oscillation{false};
417  bool supports_speed{false};
418  bool supports_direction{false};
419  int32_t supported_speed_count{0};
420  bool disabled_by_default{false};
421  std::string icon{};
422  enums::EntityCategory entity_category{};
423  void encode(ProtoWriteBuffer buffer) const override;
424 #ifdef HAS_PROTO_MESSAGE_DUMP
425  void dump_to(std::string &out) const override;
426 #endif
427 
428  protected:
429  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
430  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
431  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
432 };
434  public:
435  uint32_t key{0};
436  bool state{false};
437  bool oscillating{false};
440  int32_t speed_level{0};
441  void encode(ProtoWriteBuffer buffer) const override;
442 #ifdef HAS_PROTO_MESSAGE_DUMP
443  void dump_to(std::string &out) const override;
444 #endif
445 
446  protected:
447  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
448  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
449 };
451  public:
452  uint32_t key{0};
453  bool has_state{false};
454  bool state{false};
455  bool has_speed{false};
457  bool has_oscillating{false};
458  bool oscillating{false};
459  bool has_direction{false};
461  bool has_speed_level{false};
462  int32_t speed_level{0};
463  void encode(ProtoWriteBuffer buffer) const override;
464 #ifdef HAS_PROTO_MESSAGE_DUMP
465  void dump_to(std::string &out) const override;
466 #endif
467 
468  protected:
469  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
470  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
471 };
473  public:
474  std::string object_id{};
475  uint32_t key{0};
476  std::string name{};
477  std::string unique_id{};
478  std::vector<enums::ColorMode> supported_color_modes{};
479  bool legacy_supports_brightness{false};
480  bool legacy_supports_rgb{false};
481  bool legacy_supports_white_value{false};
482  bool legacy_supports_color_temperature{false};
483  float min_mireds{0.0f};
484  float max_mireds{0.0f};
485  std::vector<std::string> effects{};
486  bool disabled_by_default{false};
487  std::string icon{};
488  enums::EntityCategory entity_category{};
489  void encode(ProtoWriteBuffer buffer) const override;
490 #ifdef HAS_PROTO_MESSAGE_DUMP
491  void dump_to(std::string &out) const override;
492 #endif
493 
494  protected:
495  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
496  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
497  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
498 };
500  public:
501  uint32_t key{0};
502  bool state{false};
503  float brightness{0.0f};
504  enums::ColorMode color_mode{};
505  float color_brightness{0.0f};
506  float red{0.0f};
507  float green{0.0f};
508  float blue{0.0f};
509  float white{0.0f};
510  float color_temperature{0.0f};
511  float cold_white{0.0f};
512  float warm_white{0.0f};
513  std::string effect{};
514  void encode(ProtoWriteBuffer buffer) const override;
515 #ifdef HAS_PROTO_MESSAGE_DUMP
516  void dump_to(std::string &out) const override;
517 #endif
518 
519  protected:
520  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
521  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
522  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
523 };
525  public:
526  uint32_t key{0};
527  bool has_state{false};
528  bool state{false};
529  bool has_brightness{false};
530  float brightness{0.0f};
531  bool has_color_mode{false};
532  enums::ColorMode color_mode{};
533  bool has_color_brightness{false};
534  float color_brightness{0.0f};
535  bool has_rgb{false};
536  float red{0.0f};
537  float green{0.0f};
538  float blue{0.0f};
539  bool has_white{false};
540  float white{0.0f};
541  bool has_color_temperature{false};
542  float color_temperature{0.0f};
543  bool has_cold_white{false};
544  float cold_white{0.0f};
545  bool has_warm_white{false};
546  float warm_white{0.0f};
547  bool has_transition_length{false};
548  uint32_t transition_length{0};
549  bool has_flash_length{false};
550  uint32_t flash_length{0};
551  bool has_effect{false};
552  std::string effect{};
553  void encode(ProtoWriteBuffer buffer) const override;
554 #ifdef HAS_PROTO_MESSAGE_DUMP
555  void dump_to(std::string &out) const override;
556 #endif
557 
558  protected:
559  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
560  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
561  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
562 };
564  public:
565  std::string object_id{};
566  uint32_t key{0};
567  std::string name{};
568  std::string unique_id{};
569  std::string icon{};
570  std::string unit_of_measurement{};
571  int32_t accuracy_decimals{0};
572  bool force_update{false};
573  std::string device_class{};
574  enums::SensorStateClass state_class{};
575  enums::SensorLastResetType legacy_last_reset_type{};
576  bool disabled_by_default{false};
577  enums::EntityCategory entity_category{};
578  void encode(ProtoWriteBuffer buffer) const override;
579 #ifdef HAS_PROTO_MESSAGE_DUMP
580  void dump_to(std::string &out) const override;
581 #endif
582 
583  protected:
584  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
585  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
586  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
587 };
589  public:
590  uint32_t key{0};
591  float state{0.0f};
592  bool missing_state{false};
593  void encode(ProtoWriteBuffer buffer) const override;
594 #ifdef HAS_PROTO_MESSAGE_DUMP
595  void dump_to(std::string &out) const override;
596 #endif
597 
598  protected:
599  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
600  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
601 };
603  public:
604  std::string object_id{};
605  uint32_t key{0};
606  std::string name{};
607  std::string unique_id{};
608  std::string icon{};
609  bool assumed_state{false};
610  bool disabled_by_default{false};
611  enums::EntityCategory entity_category{};
612  std::string device_class{};
613  void encode(ProtoWriteBuffer buffer) const override;
614 #ifdef HAS_PROTO_MESSAGE_DUMP
615  void dump_to(std::string &out) const override;
616 #endif
617 
618  protected:
619  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
620  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
621  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
622 };
624  public:
625  uint32_t key{0};
626  bool state{false};
627  void encode(ProtoWriteBuffer buffer) const override;
628 #ifdef HAS_PROTO_MESSAGE_DUMP
629  void dump_to(std::string &out) const override;
630 #endif
631 
632  protected:
633  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
634  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
635 };
637  public:
638  uint32_t key{0};
639  bool state{false};
640  void encode(ProtoWriteBuffer buffer) const override;
641 #ifdef HAS_PROTO_MESSAGE_DUMP
642  void dump_to(std::string &out) const override;
643 #endif
644 
645  protected:
646  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
647  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
648 };
650  public:
651  std::string object_id{};
652  uint32_t key{0};
653  std::string name{};
654  std::string unique_id{};
655  std::string icon{};
656  bool disabled_by_default{false};
657  enums::EntityCategory entity_category{};
658  void encode(ProtoWriteBuffer buffer) const override;
659 #ifdef HAS_PROTO_MESSAGE_DUMP
660  void dump_to(std::string &out) const override;
661 #endif
662 
663  protected:
664  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
665  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
666  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
667 };
669  public:
670  uint32_t key{0};
671  std::string state{};
672  bool missing_state{false};
673  void encode(ProtoWriteBuffer buffer) const override;
674 #ifdef HAS_PROTO_MESSAGE_DUMP
675  void dump_to(std::string &out) const override;
676 #endif
677 
678  protected:
679  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
680  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
681  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
682 };
684  public:
686  bool dump_config{false};
687  void encode(ProtoWriteBuffer buffer) const override;
688 #ifdef HAS_PROTO_MESSAGE_DUMP
689  void dump_to(std::string &out) const override;
690 #endif
691 
692  protected:
693  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
694 };
696  public:
698  std::string message{};
699  bool send_failed{false};
700  void encode(ProtoWriteBuffer buffer) const override;
701 #ifdef HAS_PROTO_MESSAGE_DUMP
702  void dump_to(std::string &out) const override;
703 #endif
704 
705  protected:
706  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
707  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
708 };
710  public:
711  void encode(ProtoWriteBuffer buffer) const override;
712 #ifdef HAS_PROTO_MESSAGE_DUMP
713  void dump_to(std::string &out) const override;
714 #endif
715 
716  protected:
717 };
719  public:
720  std::string key{};
721  std::string value{};
722  void encode(ProtoWriteBuffer buffer) const override;
723 #ifdef HAS_PROTO_MESSAGE_DUMP
724  void dump_to(std::string &out) const override;
725 #endif
726 
727  protected:
728  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
729 };
731  public:
732  std::string service{};
733  std::vector<HomeassistantServiceMap> data{};
734  std::vector<HomeassistantServiceMap> data_template{};
735  std::vector<HomeassistantServiceMap> variables{};
736  bool is_event{false};
737  void encode(ProtoWriteBuffer buffer) const override;
738 #ifdef HAS_PROTO_MESSAGE_DUMP
739  void dump_to(std::string &out) const override;
740 #endif
741 
742  protected:
743  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
744  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
745 };
747  public:
748  void encode(ProtoWriteBuffer buffer) const override;
749 #ifdef HAS_PROTO_MESSAGE_DUMP
750  void dump_to(std::string &out) const override;
751 #endif
752 
753  protected:
754 };
756  public:
757  std::string entity_id{};
758  std::string attribute{};
759  void encode(ProtoWriteBuffer buffer) const override;
760 #ifdef HAS_PROTO_MESSAGE_DUMP
761  void dump_to(std::string &out) const override;
762 #endif
763 
764  protected:
765  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
766 };
768  public:
769  std::string entity_id{};
770  std::string state{};
771  std::string attribute{};
772  void encode(ProtoWriteBuffer buffer) const override;
773 #ifdef HAS_PROTO_MESSAGE_DUMP
774  void dump_to(std::string &out) const override;
775 #endif
776 
777  protected:
778  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
779 };
780 class GetTimeRequest : public ProtoMessage {
781  public:
782  void encode(ProtoWriteBuffer buffer) const override;
783 #ifdef HAS_PROTO_MESSAGE_DUMP
784  void dump_to(std::string &out) const override;
785 #endif
786 
787  protected:
788 };
790  public:
791  uint32_t epoch_seconds{0};
792  void encode(ProtoWriteBuffer buffer) const override;
793 #ifdef HAS_PROTO_MESSAGE_DUMP
794  void dump_to(std::string &out) const override;
795 #endif
796 
797  protected:
798  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
799 };
801  public:
802  std::string name{};
804  void encode(ProtoWriteBuffer buffer) const override;
805 #ifdef HAS_PROTO_MESSAGE_DUMP
806  void dump_to(std::string &out) const override;
807 #endif
808 
809  protected:
810  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
811  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
812 };
814  public:
815  std::string name{};
816  uint32_t key{0};
817  std::vector<ListEntitiesServicesArgument> args{};
818  void encode(ProtoWriteBuffer buffer) const override;
819 #ifdef HAS_PROTO_MESSAGE_DUMP
820  void dump_to(std::string &out) const override;
821 #endif
822 
823  protected:
824  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
825  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
826 };
828  public:
829  bool bool_{false};
830  int32_t legacy_int{0};
831  float float_{0.0f};
832  std::string string_{};
833  int32_t int_{0};
834  std::vector<bool> bool_array{};
835  std::vector<int32_t> int_array{};
836  std::vector<float> float_array{};
837  std::vector<std::string> string_array{};
838  void encode(ProtoWriteBuffer buffer) const override;
839 #ifdef HAS_PROTO_MESSAGE_DUMP
840  void dump_to(std::string &out) const override;
841 #endif
842 
843  protected:
844  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
845  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
846  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
847 };
849  public:
850  uint32_t key{0};
851  std::vector<ExecuteServiceArgument> args{};
852  void encode(ProtoWriteBuffer buffer) const override;
853 #ifdef HAS_PROTO_MESSAGE_DUMP
854  void dump_to(std::string &out) const override;
855 #endif
856 
857  protected:
858  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
859  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
860 };
862  public:
863  std::string object_id{};
864  uint32_t key{0};
865  std::string name{};
866  std::string unique_id{};
867  bool disabled_by_default{false};
868  std::string icon{};
869  enums::EntityCategory entity_category{};
870  void encode(ProtoWriteBuffer buffer) const override;
871 #ifdef HAS_PROTO_MESSAGE_DUMP
872  void dump_to(std::string &out) const override;
873 #endif
874 
875  protected:
876  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
877  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
878  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
879 };
881  public:
882  uint32_t key{0};
883  std::string data{};
884  bool done{false};
885  void encode(ProtoWriteBuffer buffer) const override;
886 #ifdef HAS_PROTO_MESSAGE_DUMP
887  void dump_to(std::string &out) const override;
888 #endif
889 
890  protected:
891  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
892  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
893  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
894 };
896  public:
897  bool single{false};
898  bool stream{false};
899  void encode(ProtoWriteBuffer buffer) const override;
900 #ifdef HAS_PROTO_MESSAGE_DUMP
901  void dump_to(std::string &out) const override;
902 #endif
903 
904  protected:
905  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
906 };
908  public:
909  std::string object_id{};
910  uint32_t key{0};
911  std::string name{};
912  std::string unique_id{};
913  bool supports_current_temperature{false};
914  bool supports_two_point_target_temperature{false};
915  std::vector<enums::ClimateMode> supported_modes{};
916  float visual_min_temperature{0.0f};
917  float visual_max_temperature{0.0f};
918  float visual_target_temperature_step{0.0f};
919  bool legacy_supports_away{false};
920  bool supports_action{false};
921  std::vector<enums::ClimateFanMode> supported_fan_modes{};
922  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
923  std::vector<std::string> supported_custom_fan_modes{};
924  std::vector<enums::ClimatePreset> supported_presets{};
925  std::vector<std::string> supported_custom_presets{};
926  bool disabled_by_default{false};
927  std::string icon{};
928  enums::EntityCategory entity_category{};
929  float visual_current_temperature_step{0.0f};
930  void encode(ProtoWriteBuffer buffer) const override;
931 #ifdef HAS_PROTO_MESSAGE_DUMP
932  void dump_to(std::string &out) const override;
933 #endif
934 
935  protected:
936  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
937  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
938  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
939 };
941  public:
942  uint32_t key{0};
944  float current_temperature{0.0f};
945  float target_temperature{0.0f};
948  bool legacy_away{false};
952  std::string custom_fan_mode{};
954  std::string custom_preset{};
955  void encode(ProtoWriteBuffer buffer) const override;
956 #ifdef HAS_PROTO_MESSAGE_DUMP
957  void dump_to(std::string &out) const override;
958 #endif
959 
960  protected:
961  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
962  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
963  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
964 };
966  public:
967  uint32_t key{0};
968  bool has_mode{false};
970  bool has_target_temperature{false};
971  float target_temperature{0.0f};
972  bool has_target_temperature_low{false};
974  bool has_target_temperature_high{false};
976  bool has_legacy_away{false};
977  bool legacy_away{false};
978  bool has_fan_mode{false};
980  bool has_swing_mode{false};
982  bool has_custom_fan_mode{false};
983  std::string custom_fan_mode{};
984  bool has_preset{false};
986  bool has_custom_preset{false};
987  std::string custom_preset{};
988  void encode(ProtoWriteBuffer buffer) const override;
989 #ifdef HAS_PROTO_MESSAGE_DUMP
990  void dump_to(std::string &out) const override;
991 #endif
992 
993  protected:
994  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
995  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
996  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
997 };
999  public:
1000  std::string object_id{};
1001  uint32_t key{0};
1002  std::string name{};
1003  std::string unique_id{};
1004  std::string icon{};
1005  float min_value{0.0f};
1006  float max_value{0.0f};
1007  float step{0.0f};
1008  bool disabled_by_default{false};
1009  enums::EntityCategory entity_category{};
1010  std::string unit_of_measurement{};
1012  std::string device_class{};
1013  void encode(ProtoWriteBuffer buffer) const override;
1014 #ifdef HAS_PROTO_MESSAGE_DUMP
1015  void dump_to(std::string &out) const override;
1016 #endif
1017 
1018  protected:
1019  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1020  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1021  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1022 };
1024  public:
1025  uint32_t key{0};
1026  float state{0.0f};
1027  bool missing_state{false};
1028  void encode(ProtoWriteBuffer buffer) const override;
1029 #ifdef HAS_PROTO_MESSAGE_DUMP
1030  void dump_to(std::string &out) const override;
1031 #endif
1032 
1033  protected:
1034  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1035  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1036 };
1038  public:
1039  uint32_t key{0};
1040  float state{0.0f};
1041  void encode(ProtoWriteBuffer buffer) const override;
1042 #ifdef HAS_PROTO_MESSAGE_DUMP
1043  void dump_to(std::string &out) const override;
1044 #endif
1045 
1046  protected:
1047  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1048 };
1050  public:
1051  std::string object_id{};
1052  uint32_t key{0};
1053  std::string name{};
1054  std::string unique_id{};
1055  std::string icon{};
1056  std::vector<std::string> options{};
1057  bool disabled_by_default{false};
1058  enums::EntityCategory entity_category{};
1059  void encode(ProtoWriteBuffer buffer) const override;
1060 #ifdef HAS_PROTO_MESSAGE_DUMP
1061  void dump_to(std::string &out) const override;
1062 #endif
1063 
1064  protected:
1065  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1066  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1067  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1068 };
1070  public:
1071  uint32_t key{0};
1072  std::string state{};
1073  bool missing_state{false};
1074  void encode(ProtoWriteBuffer buffer) const override;
1075 #ifdef HAS_PROTO_MESSAGE_DUMP
1076  void dump_to(std::string &out) const override;
1077 #endif
1078 
1079  protected:
1080  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1081  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1082  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1083 };
1085  public:
1086  uint32_t key{0};
1087  std::string state{};
1088  void encode(ProtoWriteBuffer buffer) const override;
1089 #ifdef HAS_PROTO_MESSAGE_DUMP
1090  void dump_to(std::string &out) const override;
1091 #endif
1092 
1093  protected:
1094  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1095  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1096 };
1098  public:
1099  std::string object_id{};
1100  uint32_t key{0};
1101  std::string name{};
1102  std::string unique_id{};
1103  std::string icon{};
1104  bool disabled_by_default{false};
1105  enums::EntityCategory entity_category{};
1106  bool assumed_state{false};
1107  bool supports_open{false};
1108  bool requires_code{false};
1109  std::string code_format{};
1110  void encode(ProtoWriteBuffer buffer) const override;
1111 #ifdef HAS_PROTO_MESSAGE_DUMP
1112  void dump_to(std::string &out) const override;
1113 #endif
1114 
1115  protected:
1116  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1117  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1118  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1119 };
1121  public:
1122  uint32_t key{0};
1124  void encode(ProtoWriteBuffer buffer) const override;
1125 #ifdef HAS_PROTO_MESSAGE_DUMP
1126  void dump_to(std::string &out) const override;
1127 #endif
1128 
1129  protected:
1130  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1131  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1132 };
1134  public:
1135  uint32_t key{0};
1137  bool has_code{false};
1138  std::string code{};
1139  void encode(ProtoWriteBuffer buffer) const override;
1140 #ifdef HAS_PROTO_MESSAGE_DUMP
1141  void dump_to(std::string &out) const override;
1142 #endif
1143 
1144  protected:
1145  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1146  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1147  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1148 };
1150  public:
1151  std::string object_id{};
1152  uint32_t key{0};
1153  std::string name{};
1154  std::string unique_id{};
1155  std::string icon{};
1156  bool disabled_by_default{false};
1157  enums::EntityCategory entity_category{};
1158  std::string device_class{};
1159  void encode(ProtoWriteBuffer buffer) const override;
1160 #ifdef HAS_PROTO_MESSAGE_DUMP
1161  void dump_to(std::string &out) const override;
1162 #endif
1163 
1164  protected:
1165  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1166  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1167  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1168 };
1170  public:
1171  uint32_t key{0};
1172  void encode(ProtoWriteBuffer buffer) const override;
1173 #ifdef HAS_PROTO_MESSAGE_DUMP
1174  void dump_to(std::string &out) const override;
1175 #endif
1176 
1177  protected:
1178  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1179 };
1181  public:
1182  std::string object_id{};
1183  uint32_t key{0};
1184  std::string name{};
1185  std::string unique_id{};
1186  std::string icon{};
1187  bool disabled_by_default{false};
1188  enums::EntityCategory entity_category{};
1189  bool supports_pause{false};
1190  void encode(ProtoWriteBuffer buffer) const override;
1191 #ifdef HAS_PROTO_MESSAGE_DUMP
1192  void dump_to(std::string &out) const override;
1193 #endif
1194 
1195  protected:
1196  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1197  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1198  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1199 };
1201  public:
1202  uint32_t key{0};
1204  float volume{0.0f};
1205  bool muted{false};
1206  void encode(ProtoWriteBuffer buffer) const override;
1207 #ifdef HAS_PROTO_MESSAGE_DUMP
1208  void dump_to(std::string &out) const override;
1209 #endif
1210 
1211  protected:
1212  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1213  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1214 };
1216  public:
1217  uint32_t key{0};
1218  bool has_command{false};
1220  bool has_volume{false};
1221  float volume{0.0f};
1222  bool has_media_url{false};
1223  std::string media_url{};
1224  void encode(ProtoWriteBuffer buffer) const override;
1225 #ifdef HAS_PROTO_MESSAGE_DUMP
1226  void dump_to(std::string &out) const override;
1227 #endif
1228 
1229  protected:
1230  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1231  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1232  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1233 };
1235  public:
1236  void encode(ProtoWriteBuffer buffer) const override;
1237 #ifdef HAS_PROTO_MESSAGE_DUMP
1238  void dump_to(std::string &out) const override;
1239 #endif
1240 
1241  protected:
1242 };
1244  public:
1245  std::string uuid{};
1246  std::vector<uint32_t> legacy_data{};
1247  std::string data{};
1248  void encode(ProtoWriteBuffer buffer) const override;
1249 #ifdef HAS_PROTO_MESSAGE_DUMP
1250  void dump_to(std::string &out) const override;
1251 #endif
1252 
1253  protected:
1254  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1255  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1256 };
1258  public:
1259  uint64_t address{0};
1260  std::string name{};
1261  int32_t rssi{0};
1262  std::vector<std::string> service_uuids{};
1263  std::vector<BluetoothServiceData> service_data{};
1264  std::vector<BluetoothServiceData> manufacturer_data{};
1265  uint32_t address_type{0};
1266  void encode(ProtoWriteBuffer buffer) const override;
1267 #ifdef HAS_PROTO_MESSAGE_DUMP
1268  void dump_to(std::string &out) const override;
1269 #endif
1270 
1271  protected:
1272  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1273  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1274 };
1276  public:
1277  uint64_t address{0};
1279  bool has_address_type{false};
1280  uint32_t address_type{0};
1281  void encode(ProtoWriteBuffer buffer) const override;
1282 #ifdef HAS_PROTO_MESSAGE_DUMP
1283  void dump_to(std::string &out) const override;
1284 #endif
1285 
1286  protected:
1287  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1288 };
1290  public:
1291  uint64_t address{0};
1292  bool connected{false};
1293  uint32_t mtu{0};
1294  int32_t error{0};
1295  void encode(ProtoWriteBuffer buffer) const override;
1296 #ifdef HAS_PROTO_MESSAGE_DUMP
1297  void dump_to(std::string &out) const override;
1298 #endif
1299 
1300  protected:
1301  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1302 };
1304  public:
1305  uint64_t address{0};
1306  void encode(ProtoWriteBuffer buffer) const override;
1307 #ifdef HAS_PROTO_MESSAGE_DUMP
1308  void dump_to(std::string &out) const override;
1309 #endif
1310 
1311  protected:
1312  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1313 };
1315  public:
1316  std::vector<uint64_t> uuid{};
1317  uint32_t handle{0};
1318  void encode(ProtoWriteBuffer buffer) const override;
1319 #ifdef HAS_PROTO_MESSAGE_DUMP
1320  void dump_to(std::string &out) const override;
1321 #endif
1322 
1323  protected:
1324  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1325 };
1327  public:
1328  std::vector<uint64_t> uuid{};
1329  uint32_t handle{0};
1330  uint32_t properties{0};
1331  std::vector<BluetoothGATTDescriptor> descriptors{};
1332  void encode(ProtoWriteBuffer buffer) const override;
1333 #ifdef HAS_PROTO_MESSAGE_DUMP
1334  void dump_to(std::string &out) const override;
1335 #endif
1336 
1337  protected:
1338  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1339  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1340 };
1342  public:
1343  std::vector<uint64_t> uuid{};
1344  uint32_t handle{0};
1345  std::vector<BluetoothGATTCharacteristic> characteristics{};
1346  void encode(ProtoWriteBuffer buffer) const override;
1347 #ifdef HAS_PROTO_MESSAGE_DUMP
1348  void dump_to(std::string &out) const override;
1349 #endif
1350 
1351  protected:
1352  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1353  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1354 };
1356  public:
1357  uint64_t address{0};
1358  std::vector<BluetoothGATTService> services{};
1359  void encode(ProtoWriteBuffer buffer) const override;
1360 #ifdef HAS_PROTO_MESSAGE_DUMP
1361  void dump_to(std::string &out) const override;
1362 #endif
1363 
1364  protected:
1365  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1366  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1367 };
1369  public:
1370  uint64_t address{0};
1371  void encode(ProtoWriteBuffer buffer) const override;
1372 #ifdef HAS_PROTO_MESSAGE_DUMP
1373  void dump_to(std::string &out) const override;
1374 #endif
1375 
1376  protected:
1377  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1378 };
1380  public:
1381  uint64_t address{0};
1382  uint32_t handle{0};
1383  void encode(ProtoWriteBuffer buffer) const override;
1384 #ifdef HAS_PROTO_MESSAGE_DUMP
1385  void dump_to(std::string &out) const override;
1386 #endif
1387 
1388  protected:
1389  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1390 };
1392  public:
1393  uint64_t address{0};
1394  uint32_t handle{0};
1395  std::string data{};
1396  void encode(ProtoWriteBuffer buffer) const override;
1397 #ifdef HAS_PROTO_MESSAGE_DUMP
1398  void dump_to(std::string &out) const override;
1399 #endif
1400 
1401  protected:
1402  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1403  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1404 };
1406  public:
1407  uint64_t address{0};
1408  uint32_t handle{0};
1409  bool response{false};
1410  std::string data{};
1411  void encode(ProtoWriteBuffer buffer) const override;
1412 #ifdef HAS_PROTO_MESSAGE_DUMP
1413  void dump_to(std::string &out) const override;
1414 #endif
1415 
1416  protected:
1417  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1418  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1419 };
1421  public:
1422  uint64_t address{0};
1423  uint32_t handle{0};
1424  void encode(ProtoWriteBuffer buffer) const override;
1425 #ifdef HAS_PROTO_MESSAGE_DUMP
1426  void dump_to(std::string &out) const override;
1427 #endif
1428 
1429  protected:
1430  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1431 };
1433  public:
1434  uint64_t address{0};
1435  uint32_t handle{0};
1436  std::string data{};
1437  void encode(ProtoWriteBuffer buffer) const override;
1438 #ifdef HAS_PROTO_MESSAGE_DUMP
1439  void dump_to(std::string &out) const override;
1440 #endif
1441 
1442  protected:
1443  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1444  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1445 };
1447  public:
1448  uint64_t address{0};
1449  uint32_t handle{0};
1450  bool enable{false};
1451  void encode(ProtoWriteBuffer buffer) const override;
1452 #ifdef HAS_PROTO_MESSAGE_DUMP
1453  void dump_to(std::string &out) const override;
1454 #endif
1455 
1456  protected:
1457  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1458 };
1460  public:
1461  uint64_t address{0};
1462  uint32_t handle{0};
1463  std::string data{};
1464  void encode(ProtoWriteBuffer buffer) const override;
1465 #ifdef HAS_PROTO_MESSAGE_DUMP
1466  void dump_to(std::string &out) const override;
1467 #endif
1468 
1469  protected:
1470  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1471  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1472 };
1474  public:
1475  void encode(ProtoWriteBuffer buffer) const override;
1476 #ifdef HAS_PROTO_MESSAGE_DUMP
1477  void dump_to(std::string &out) const override;
1478 #endif
1479 
1480  protected:
1481 };
1483  public:
1484  uint32_t free{0};
1485  uint32_t limit{0};
1486  void encode(ProtoWriteBuffer buffer) const override;
1487 #ifdef HAS_PROTO_MESSAGE_DUMP
1488  void dump_to(std::string &out) const override;
1489 #endif
1490 
1491  protected:
1492  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1493 };
1495  public:
1496  uint64_t address{0};
1497  uint32_t handle{0};
1498  int32_t error{0};
1499  void encode(ProtoWriteBuffer buffer) const override;
1500 #ifdef HAS_PROTO_MESSAGE_DUMP
1501  void dump_to(std::string &out) const override;
1502 #endif
1503 
1504  protected:
1505  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1506 };
1508  public:
1509  uint64_t address{0};
1510  uint32_t handle{0};
1511  void encode(ProtoWriteBuffer buffer) const override;
1512 #ifdef HAS_PROTO_MESSAGE_DUMP
1513  void dump_to(std::string &out) const override;
1514 #endif
1515 
1516  protected:
1517  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1518 };
1520  public:
1521  uint64_t address{0};
1522  uint32_t handle{0};
1523  void encode(ProtoWriteBuffer buffer) const override;
1524 #ifdef HAS_PROTO_MESSAGE_DUMP
1525  void dump_to(std::string &out) const override;
1526 #endif
1527 
1528  protected:
1529  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1530 };
1532  public:
1533  uint64_t address{0};
1534  bool paired{false};
1535  int32_t error{0};
1536  void encode(ProtoWriteBuffer buffer) const override;
1537 #ifdef HAS_PROTO_MESSAGE_DUMP
1538  void dump_to(std::string &out) const override;
1539 #endif
1540 
1541  protected:
1542  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1543 };
1545  public:
1546  uint64_t address{0};
1547  bool success{false};
1548  int32_t error{0};
1549  void encode(ProtoWriteBuffer buffer) const override;
1550 #ifdef HAS_PROTO_MESSAGE_DUMP
1551  void dump_to(std::string &out) const override;
1552 #endif
1553 
1554  protected:
1555  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1556 };
1557 
1558 } // namespace api
1559 } // namespace esphome
float target_temperature_low
Definition: climate.h:562
const char * name
Definition: stm32flash.h:78
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition: proto.h:17
int speed
Definition: fan.h:35
float tilt
Definition: cover.h:15
float target_temperature_high
Definition: climate.h:563
ClimateSwingMode swing_mode
Definition: climate.h:558
FanDirection direction
Definition: fan.h:37
uint8_t custom_preset
Definition: climate.h:556
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:151
uint8_t type
uint8_t options
ClimateFanMode fan_mode
Definition: climate.h:550
bool oscillating
Definition: fan.h:36
Definition: a4988.cpp:4
float position
Definition: cover.h:14
uint8_t custom_fan_mode
Definition: climate.h:551
float target_temperature
Definition: climate.h:560
ClimatePreset preset
Definition: climate.h:555
bool state
Definition: fan.h:34