-
Notifications
You must be signed in to change notification settings - Fork 34
/
configuration.yaml
3897 lines (3777 loc) · 124 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# _ _ _ _ _
# | | | | /\ (_) | | | |
# | |__| | ___ _ __ ___ ___ / \ ___ ___ _ ___| |_ __ _ _ __ | |_
# | __ |/ _ \| '_ ` _ \ / _ \ / /\ \ / __/ __| / __| __/ _` | '_ \| __|
# | | | | (_) | | | | | | __/ / ____ \\__ \__ \ \__ \ || (_| | | | | |_
# |_| |_|\___/|_| |_| |_|\___| /_/ \_\___/___/_|___/\__\__,_|_| |_|\__|
#
# https://www.home-assistant.io/docs/configuration/basic/
homeassistant:
# Nome do local onde o Home Assistant está sendo executado
name: Home
# Localização necessária para calcular a hora em que o sol nasce e se põe
latitude: !secret lat
longitude: !secret long
# Impactos meteorológicos / dados do nascer do sol (altitude acima do nível do mar em metros)
elevation: 150
# metric para Metric, imperial para Imperial
unit_system: metric
# Escolha o seu aqui: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Sao_Paulo
# Arquivo de customização
customize: !include customize.yaml
# Metodo de autenticação
auth_providers:
- type: homeassistant
# Lista de pastas que podem ser usadas como fontes para o envio de arquivos.
whitelist_external_dirs:
- /tmp
- /config
# _____
# | __ \
# | |__) |__ _ __ ___ ___ _ __
# | ___/ _ \ '__/ __|/ _ \| '_ \
# | | | __/ | \__ \ (_) | | | |
# |_| \___|_| |___/\___/|_| |_|
# https://www.home-assistant.io/components/person/
#person:
# - name: Rudi
# id: 3nfr8CXF
# device_trackers:
# - device_tracker.life360_rudimar_remontti
# - name: Flavia
# id: nucnTHSG
# device_trackers:
# - device_tracker.life360_flavia_cristine_vendruscolo
# Zonas de localização
# ______
# |___ /
# / / ___ _ __ ___
# / / / _ \| '_ \ / _ \
# / /_| (_) | | | | __/
# /_____\___/|_| |_|\___|
# https://www.home-assistant.io/components/zone/
zone:
- name: "SpeedRS"
latitude: !secret back_latitude
longitude: !secret back_longitude
radius: 130
icon: mdi:briefcase
- name: "D.Femme"
latitude: !secret mj_latitude
longitude: !secret mj_longitude
radius: 100
icon: mdi:briefcase
- name: Castelinho
latitude: !secret cas_latitude
longitude: !secret cas_longitude
radius: 400
icon: mdi:home-variant
# Cenas (teste)
# _____
# / ____|
# | (___ ___ ___ _ __ ___
# \___ \ / __/ _ \ '_ \ / _ \
# ____) | (_| __/ | | | __/
# |_____/ \___\___|_| |_|\___|
# https://www.home-assistant.io/components/scene/
scene:
- name: "Suíte Romantica"
entities:
light.yeelight_color1_7c49eb15924b:
state: true
rgb_color: [255, 0, 255]
brightness: 255
# Enables the frontend
# ______ _ _
# | ____| | | | |
# | |__ _ __ ___ _ __ | |_ ___ _ __ __| |
# | __| '__/ _ \| '_ \| __/ _ \ '_ \ / _` |
# | | | | | (_) | | | | || __/ | | | (_| |
# |_| |_| \___/|_| |_|\__\___|_| |_|\__,_|
# https://www.home-assistant.io/components/frontend/
frontend:
# themes: !include themes.yaml
themes: !include_dir_merge_named themes
# _____ _ _____ __
# | __ \ | | |_ _|/ _|
# | |__) |_ _ _ __ ___| | | | | |_ _ __ __ _ _ __ ___ ___
# | ___/ _` | '_ \ / _ \ | | | | _| '__/ _` | '_ ` _ \ / _ \
# | | | (_| | | | | __/ | _| |_| | | | | (_| | | | | | | __/
# |_| \__,_|_| |_|\___|_| |_____|_| |_| \__,_|_| |_| |_|\___|
# https://www.home-assistant.io/components/panel_iframe/
#panel_iframe:
# - name: hassio-main
# sidebar_title: Configurador
# sidebar_icon: hass:settings
# js_url: /api/hassio/app/entrypoint.js
# url_path: configurator
# embed_iframe: true
# require_admin: true
# config:
# ingress: core_configurator
# Enables configuration UI
# _____ __ _
# / ____| / _(_)
# | | ___ _ __ | |_ _ __ _
# | | / _ \| '_ \| _| |/ _` |
# | |___| (_) | | | | | | | (_| |
# \_____\___/|_| |_|_| |_|\__, |
# __/ |
# |___/
# https://www.home-assistant.io/components/config/
config:
mobile_app:
#default_config:
#[
# "automation",
# "cloud",
# "config",
# "conversation",
# "frontend",
# "history",
# "logbook",
# "map",
# "mobile_app",
# "person",
# "script",
# "sun",
# "system_health",
# "updater",
# "zeroconf"
#]
# _ _ _ _
# | | | | | | |
# | |__| | |_| |_ _ __
# | __ | __| __| '_ \
# | | | | |_| |_| |_) |
# |_| |_|\__|\__| .__/
# |_|
# https://www.home-assistant.io/components/http/
#http:
#server_port: 55123
#base_url: !secret url_base
#ssl_certificate: /ssl/fullchain.pem
#ssl_key: /ssl/privkey.pem
#ip_ban_enabled: true
#login_attempts_threshold: 3
# Segredos são definidos no arquivo secrets.yaml
# _ _ _ _
# | | | | | | | |
# | | | |_ __ __| | __ _| |_ ___ _ __
# | | | | '_ \ / _` |/ _` | __/ _ \ '__|
# | |__| | |_) | (_| | (_| | || __/ |
# \____/| .__/ \__,_|\__,_|\__\___|_|
# |_|
# https://www.home-assistant.io/components/updater/
updater:
# Opcional, permite que os desenvolvedores do Home Assistant se concentrem em componentes populares.
# include_used_components: true
# Descubra alguns dispositivos automaticamente
# _____ _
# | __ \(_)
# | | | |_ ___ ___ _____ _____ _ __ _ _
# | | | | / __|/ __/ _ \ \ / / _ \ '__| | | |
# | |__| | \__ \ (_| (_) \ V / __/ | | |_| |
# |_____/|_|___/\___\___/ \_/ \___|_| \__, |
# __/ |
# |___/
# https://www.home-assistant.io/components/discovery/
discovery:
ignore:
- yeelight
# Permite que você emita comandos de voz do frontend em navegadores ativados
# _____ _ _
# / ____| | | (_)
# | | ___ _ ____ _____ _ __ ___ __ _| |_ _ ___ _ __
# | | / _ \| '_ \ \ / / _ \ '__/ __|/ _` | __| |/ _ \| '_ \
# | |___| (_) | | | \ V / __/ | \__ \ (_| | |_| | (_) | | | |
# \_____\___/|_| |_|\_/ \___|_| |___/\__,_|\__|_|\___/|_| |_|
# https://www.home-assistant.io/components/conversation/
conversation:
# Armazenamento do Banco de dados
# _____ _
# | __ \ | |
# | |__) |___ ___ ___ _ __ __| | ___ _ __
# | _ // _ \/ __/ _ \| '__/ _` |/ _ \ '__|
# | | \ \ __/ (_| (_) | | | (_| | __/ |
# |_| \_\___|\___\___/|_| \__,_|\___|_|
# https://www.home-assistant.io/components/recorder/
recorder:
purge_keep_days: 1
db_url: !secret maria_db
exclude:
domains:
- automation
- updater
entities:
- sun.sun
- sensor.last_boot
- sensor.date
event_types:
- call_service
# Suporte para rastrear mudanças de estado ao longo do tempo
# _ _ _ _
# | | | (_) | |
# | |__| |_ ___| |_ ___ _ __ _ _
# | __ | / __| __/ _ \| '__| | | |
# | | | | \__ \ || (_) | | | |_| |
# |_| |_|_|___/\__\___/|_| \__, |
# |___/
# https://www.home-assistant.io/components/history/
history:
exclude:
domains:
- updater
- sun
- binary_sensor
- media_player
- device_tracker
- input_boolean
- input_datetime
- input_number
- input_select
- input_text
- camera
- script
# - automation
entities:
- sensor.last_boot
- sensor.date
- sensor.distancia_d_agua
- sensor.nivel_real
# - sensor.vazao_de_agua
# Ver todos os eventos em um diário de bordo
# _ _ _
# | | ___ __ _| |__ ___ ___ | | __
# | | / _ \ / _` | '_ \ / _ \ / _ \| |/ /
# | |___| (_) | (_| | |_) | (_) | (_) | <
# |______\___/ \__, |_.__/ \___/ \___/|_|\_\
# |___/
# https://www.home-assistant.io/components/logbook/
logbook:
exclude:
entities:
- sensor.last_boot
- sensor.date
- sensor.distancia_d_agua
- sensor.nivel_real
- sensor.vazao_de_agua
domains:
- sun
- binary_sensor
- media_player
- device_tracker
- input_boolean
- input_datetime
- input_number
- input_select
- input_text
- camera
- script
# - automation
# Nível de registro de atividades
# _
# | | ___ __ _ __ _ ___ _ __
# | | / _ \ / _` |/ _` |/ _ \ '__|
# | |___| (_) | (_| | (_| | __/ |
# |______\___/ \__, |\__, |\___|_|
# |___/ |___/
# https://www.home-assistant.io/components/logger/
logger:
# default: critical
default: warning
logs:
# homeassistant.core: critical
homeassistant.components.mqtt: fatal
# Texto em voz
# _ _
# | | | |
# | |_| |_ ___
# | __| __/ __|
# | |_| |_\__ \
# \__|\__|___/
# https://www.home-assistant.io/components/tts/
# https://www.home-assistant.io/components/google_translate/
# https://www.home-assistant.io/components/voicerss/
# https://www.home-assistant.io/components/amazon_polly/
tts:
- platform: google_translate
language: 'pt-br'
cache: true
cache_dir: /tmp/tts
time_memory: 300
# - platform: voicerss
# api_key: !secret voicerss_key
# language: 'pt-br'
# format: '44khz_16bit_stereo'
# # http://www.voicerss.org/personel/statistic.aspx
# - platform: watson_tts
# watson_apikey: !secret watson_key
# #voice: pt-BR_IsabelaVoice
# voice: pt-BR_IsabelaV3Voice
# - platform: amazon_polly
# aws_access_key_id: !secret aws_access_key_id
# aws_secret_access_key: !secret aws_secret_access_key
# #text_type: ssml
# voice: Ricardo
# #voice: Vitoria
# region_name: sa-east-1
# _____ _ _
# / ____| | | |
# | | | | ___ _ _ __| |
# | | | |/ _ \| | | |/ _` |
# | |____| | (_) | |_| | (_| |
# \_____|_|\___/ \__,_|\__,_|
# https://www.home-assistant.io/cloud/
#cloud:
# Localizador
# _____ _ _ _
# | __ \ (_) | | | |
# | | | | _____ ___ ___ ___ | |_ _ __ __ _ ___| | _____ _ __
# | | | |/ _ \ \ / / |/ __/ _ \ | __| '__/ _` |/ __| |/ / _ \ '__|
# | |__| | __/\ V /| | (_| __/ | |_| | | (_| | (__| < __/ |
# |_____/ \___| \_/ |_|\___\___| \__|_| \__,_|\___|_|\_\___|_|
# https://www.home-assistant.io/components/device_tracker/
# https://www.home-assistant.io/components/google_maps/
device_tracker:
# - platform: google_maps
# username: !secret gmail_user
# password: !secret gmail_senha
# Extrair fluxo de audio (ex youtube)
# __ __ _ _ ______ _ _
# | \/ | | (_) | ____| | | | |
# | \ / | ___ __| |_ __ _ | |__ __ _| |_ _ __ __ _ ___| |_ ___ _ __
# | |\/| |/ _ \/ _` | |/ _` | | __| \ \/ / __| '__/ _` |/ __| __/ _ \| '__|
# | | | | __/ (_| | | (_| | | |____ > <| |_| | | (_| | (__| || (_) | |
# |_| |_|\___|\__,_|_|\__,_| |______/_/\_\\__|_| \__,_|\___|\__\___/|_|
media_extractor:
# Media Players
# __ __ _ _ _____ _
# | \/ | | (_) | __ \| |
# | \ / | ___ __| |_ __ _ | |__) | | __ _ _ _ ___ _ __
# | |\/| |/ _ \/ _` | |/ _` | | ___/| |/ _` | | | |/ _ \ '__|
# | | | | __/ (_| | | (_| | | | | | (_| | |_| | __/ |
# |_| |_|\___|\__,_|_|\__,_| |_| |_|\__,_|\__, |\___|_|
# |___/
# https://www.home-assistant.io/components/media_extractor/
# https://github.com/smartHomeHub/SmartIR
media_player:
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
# - platform: lg_netcast
# name: "LG Smart TV"
# host: 192.168.87.13
# access_token: 431855
# https://www.home-assistant.io/integrations/webostv/
#webostv:
# host: 192.168.87.250
# name: TV Estar
# Casts (google home mini/chrome cast)
# _____ _
# / ____| | |
# | | __ _ ___| |_
# | | / _` / __| __|
# | |___| (_| \__ \ |_
# \_____\__,_|___/\__|
# https://www.home-assistant.io/components/cast/
cast:
# Mosquito
# __ __ _ _
# | \/ | | | | |
# | \ / | __ _| |_| |_
# | |\/| |/ _` | __| __|
# | | | | (_| | |_| |_
# |_| |_|\__, |\__|\__|
# |_|
# https://www.home-assistant.io/components/mqtt/
# https://www.home-assistant.io/addons/mosquitto/
mqtt:
broker: 192.168.87.5
port: 1883
client_id: home-assistant-1
username: !secret mqtt_username
password: !secret mqtt_password
# discovery: true
# discovery_prefix: homeassistant
# Mostrando a localização de dispositivos rastreados no mapa
# __ __
# | \/ |
# | \ / | __ _ _ __
# | |\/| |/ _` | '_ \
# | | | | (_| | |_) |
# |_| |_|\__,_| .__/
# |_|
# https://www.home-assistant.io/components/map/
map:
# Acompanhe o sol
# _____
# / ____|
# | (___ _ _ _ __
# \___ \| | | | '_ \
# ____) | |_| | | | |
# |_____/ \__,_|_| |_|
# https://www.home-assistant.io/components/sun/
sun:
# Sensores
# _____
# / ____|
# | (___ ___ _ __ ___ ___ _ __
# \___ \ / _ \ '_ \/ __|/ _ \| '__|
# ____) | __/ | | \__ \ (_) | |
# |_____/ \___|_| |_|___/\___/|_|
# https://www.home-assistant.io/components/sensor/
# https://www.home-assistant.io/components/sensor.mqtt/
# https://www.home-assistant.io/components/darksky/
# https://www.home-assistant.io/components/moon/
# https://www.home-assistant.io/components/time_date/
# https://www.home-assistant.io/components/systemmonitor/
# https://www.home-assistant.io/components/filesize/
# https://www.home-assistant.io/components/sql/
# https://www.home-assistant.io/components/template/
# https://www.home-assistant.io/components/integration/
# https://www.home-assistant.io/components/statistics/
sensor:
- platform: mqtt
name: "Suite Temperatura"
device_class: temperature
state_topic: "tele/sonoff26/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Suite Umidade"
device_class: humidity
state_topic: "tele/sonoff26/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
- platform: mqtt
name: "Cozinha Temperatura"
device_class: temperature
state_topic: "tele/sonoff23/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Cozinha Umidade"
device_class: humidity
state_topic: "tele/sonoff23/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
- platform: mqtt
name: "Banheiro Social Temperatura"
device_class: temperature
state_topic: "tele/sonoff24/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Banheiro Social Umidade"
device_class: humidity
state_topic: "tele/sonoff24/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
- platform: mqtt
name: "Banheiro Suíte Temperatura"
device_class: temperature
state_topic: "tele/sonoff09/SENSOR"
value_template: "{{ value_json['AM2301'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Banheiro Suíte Umidade"
device_class: humidity
state_topic: "tele/sonoff09/SENSOR"
value_template: "{{ value_json['AM2301'].Humidity }}"
unit_of_measurement: "%"
# - platform: yr
- platform: darksky
api_key: !secret api_darksky
language: 'pt'
units: ca
monitored_conditions:
- temperature
- wind_speed
- cloud_cover
- humidity
- pressure
- visibility
- hourly_summary
- daily_summary
- uv_index
- platform: moon
- platform: time_date
display_options:
- 'time'
- 'date'
- platform: systemmonitor
resources:
- type: disk_free
arg: /
- type: disk_use
arg: /
- type: disk_use_percent
arg: /
- type: memory_free
- type: memory_use
- type: memory_use_percent
- type: processor_use
- type: last_boot
# - platform: filesize
# file_paths:
# - /config/home-assistant_v2.db
- platform: sql
db_url: !secret maria_db
queries:
- name: DB size
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1048576, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
column: 'value'
unit_of_measurement: MB
- platform: uptime
name: Uptime
- platform: version
name: Versao
- platform: command_line
name: CPU Temperatura
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
# PZEM
- platform: mqtt
name: "Watts"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Frequencia"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Frequency }}"
unit_of_measurement: "Hz"
icon: mdi:current-dc
- platform: mqtt
name: "Potência aparente"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.ApparentPower }}"
unit_of_measurement: "VA"
icon: mdi:square-outline
- platform: mqtt
name: "Potência reativa"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.ReactivePower }}"
unit_of_measurement: "VAr"
icon: mdi:square-outline
- platform: mqtt
name: "Fator Potência"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Factor }}"
icon: mdi:percent
- platform: mqtt
name: "Consumo Diário"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total"
state_topic: "tele/sonoff27/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
# - platform: integration
# source: sensor.watts
# name: Energia Gasta
# unit_prefix: k
# round: 3
# SonoffPowR2 Máquina de Lavar
- platform: mqtt
name: "Watts Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Consumo Diário Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total Lava e Seca"
state_topic: "tele/sonoffpow/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
# - platform: mqtt
# name: "Frequencia Lava e Seca"
# state_topic: "tele/sonoffpow/SENSOR"
# value_template: "{{ value_json.ENERGY.Frequency }}"
# unit_of_measurement: "Hz"
# icon: mdi:current-dc
# - platform: mqtt
# name: "Potência aparente Lava e Seca"
# state_topic: "tele/sonoffpow/SENSOR"
# value_template: "{{ value_json.ENERGY.ApparentPower }}"
# unit_of_measurement: "VA"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Potência reativa Lava e Seca"
# state_topic: "tele/sonoffpow/SENSOR"
# value_template: "{{ value_json.ENERGY.ReactivePower }}"
# unit_of_measurement: "VAr"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Fator Potência Lava e Seca"
# state_topic: "tele/sonoffpow/SENSOR"
# value_template: "{{ value_json.ENERGY.Factor }}"
# icon: mdi:percent
- platform: integration
source: sensor.watts_lava_e_seca
name: Energia Gasta Lava e Seca
unit_prefix: k
round: 3
# powgeladeiraR2 Geladeira
- platform: mqtt
name: "Watts Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Consumo Diário Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total Geladeira"
state_topic: "tele/powgeladeira/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
# - platform: mqtt
# name: "Frequencia Geladeira"
# state_topic: "tele/powgeladeira/SENSOR"
# value_template: "{{ value_json.ENERGY.Frequency }}"
# unit_of_measurement: "Hz"
# icon: mdi:current-dc
# - platform: mqtt
# name: "Potência aparente Geladeira"
# state_topic: "tele/powgeladeira/SENSOR"
# value_template: "{{ value_json.ENERGY.ApparentPower }}"
# unit_of_measurement: "VA"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Potência reativa Geladeira"
# state_topic: "tele/powgeladeira/SENSOR"
# value_template: "{{ value_json.ENERGY.ReactivePower }}"
# unit_of_measurement: "VAr"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Fator Potência Geladeira"
# state_topic: "tele/powgeladeira/SENSOR"
# value_template: "{{ value_json.ENERGY.Factor }}"
# icon: mdi:percent
- platform: integration
source: sensor.watts_geladeira
name: Energia Gasta Geladeira
unit_prefix: k
round: 3
# powpurificadorR2 Purificador
- platform: mqtt
name: "Watts Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Consumo Diário Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total Purificador"
state_topic: "tele/powpurificador/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: integration
source: sensor.watts_purificador
name: Energia Gasta Purificador
unit_prefix: k
round: 3
# powcervejaR2 Cervejeira
- platform: mqtt
name: "Watts Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Consumo Diário Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total Cervejeira"
state_topic: "tele/powcerveja/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: integration
source: sensor.watts_cervejeira
name: Energia Gasta Cervejeira
unit_prefix: k
round: 3
# powpiscinaR2 Piscina
- platform: mqtt
name: "Watts Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Power }}"
unit_of_measurement: "W"
icon: mdi:power-plug
- platform: mqtt
name: "Voltagem Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Voltage }}"
unit_of_measurement: "V"
icon: mdi:flash
- platform: mqtt
name: "Corrente Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Current }}"
unit_of_measurement: "A"
icon: mdi:current-ac
- platform: mqtt
name: "Consumo Diário Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Today }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo dia Anterior Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Yesterday }}"
unit_of_measurement: "kWh"
icon: mdi:counter
- platform: mqtt
name: "Consumo Total Piscina"
state_topic: "tele/powpiscina/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: "kWh"
icon: mdi:counter
# - platform: mqtt
# name: "Frequencia Piscina"
# state_topic: "tele/powpiscina/SENSOR"
# value_template: "{{ value_json.ENERGY.Frequency }}"
# unit_of_measurement: "Hz"
# icon: mdi:current-dc
# - platform: mqtt
# name: "Potência aparente Piscina"
# state_topic: "tele/powpiscina/SENSOR"
# value_template: "{{ value_json.ENERGY.ApparentPower }}"
# unit_of_measurement: "VA"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Potência reativa Piscina"
# state_topic: "tele/powpiscina/SENSOR"
# value_template: "{{ value_json.ENERGY.ReactivePower }}"
# unit_of_measurement: "VAr"
# icon: mdi:square-outline
# - platform: mqtt
# name: "Fator Potência Piscina"
# state_topic: "tele/powpiscina/SENSOR"
# value_template: "{{ value_json.ENERGY.Factor }}"
# icon: mdi:percent
- platform: integration
source: sensor.watts_Piscina
name: Energia Gasta Piscina
unit_prefix: k
round: 3
# Contador de vezes que as luzes foram ligadas
- platform: history_stats
name: "Corredor (Contador)"
entity_id: light.luz_do_corredor
state: 'on'
type: count
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: "Banheiro Social (Contador)"
entity_id: light.luz_do_banheiro_social
state: 'on'
type: count
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: "Banheiro da suite (Contador)"
entity_id: light.luz_do_banheiro_da_suite
state: 'on'
type: count
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: "Lavabo (Contador)"
entity_id: light.luz_do_lavabo
state: 'on'
type: count
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
# Porta Geladeira
- platform: history_stats
name: Geladeira vezes aberta
entity_id: binary_sensor.porta_geladeira
state: 'on'
type: count
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
# - platform: history_stats
# name: Geladeira tempo aberta
# entity_id: binary_sensor.porta_geladeira
# state: 'on'
# type: time
# start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
# end: '{{ now() }}'
# Captura trafego na WAN do Roteador RB2011
- platform: snmp
name: 'ether1_wan_in'
host: 192.168.10.1
baseoid: 1.3.6.1.2.1.31.1.1.1.6.1
community: 'public'
version: '2c'
#scan_interval: 10
- platform: snmp
name: 'ether1_wan_out'
host: 192.168.10.1
baseoid: 1.3.6.1.2.1.31.1.1.1.10.1
community: 'public'
version: '2c'
#scan_interval: 10
- platform: statistics
name: 'WAN In'
entity_id: sensor.internet_speed_in
max_age:
hours: 12
- platform: statistics
name: 'WAN Out'
entity_id: sensor.internet_speed_out
max_age:
hours: 12
- platform: mqtt
state_topic: 'SensorAgua/contagem'
name: 'Vazão de água'
icon: "mdi:water-pump"
unit_of_measurement: 'litros'
value_template: '{{ value_json.vazao }}'
- platform: mqtt
state_topic: 'SensorAgua/contagem'
name: 'Vazão de água Min'
icon: "mdi:water"
unit_of_measurement: 'litros/min'
value_template: '{{ value_json.consumo_agua }}'
- platform: mqtt