Home Assistant Git Exporter
This commit is contained in:
5
config/01capteur/.vscode/settings.json
vendored
Normal file
5
config/01capteur/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.yaml": "yaml"
|
||||
}
|
||||
}
|
||||
65
config/01capteur/binary_sensor/binary_sensors.yaml
Normal file
65
config/01capteur/binary_sensor/binary_sensors.yaml
Normal file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
#----------------------------------------
|
||||
#
|
||||
# jour de semaine
|
||||
#----------------------------------------
|
||||
#_ platform: workday
|
||||
#country: FR
|
||||
# workdays: [mon, tue, wed, thu, fri]
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# pi computer & esp & other hardware
|
||||
#----------------------------------------
|
||||
|
||||
# - platform: ping
|
||||
# host: 10.0.0.30
|
||||
# name: pi0_bureau
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.31
|
||||
# name: pi0_comble2
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.251
|
||||
# name: WifiHome
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.100
|
||||
# name: Linksys g
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.106
|
||||
# name: RM pro
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.78
|
||||
# name: ArduinoESP
|
||||
# count: 2
|
||||
# scan_interval: 300
|
||||
# - platform: ping
|
||||
# host: 10.0.0.237
|
||||
# name: TV
|
||||
# count: 2
|
||||
# scan_interval: 60
|
||||
|
||||
# - platform: ping
|
||||
# host: 10.0.0.208
|
||||
# name: sonnete
|
||||
# count: 2
|
||||
# scan_interval: 1
|
||||
|
||||
# - platform: template
|
||||
# sensors:
|
||||
# your_sensor:
|
||||
# friendly_name: fenetre
|
||||
# value_template: "{{ is_state('binary_sensor.trigger_sensor', 'off') and (states.trigger_sensor.last_changed < (now() - timedelta(minutes=10))) }}"
|
||||
- platform: meteoalarm
|
||||
country: "france"
|
||||
province: "Haute-Loire"
|
||||
language: "fr-FR"
|
||||
33
config/01capteur/binary_sensor/chaudiere.yaml.old
Normal file
33
config/01capteur/binary_sensor/chaudiere.yaml.old
Normal file
@@ -0,0 +1,33 @@
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## digital inputs
|
||||
# input_type: discrete_input
|
||||
## FC=02 lire discrete inputs de 10001-10086 enlever 1 a register
|
||||
######################################################################
|
||||
|
||||
- platform: modbus
|
||||
scan_interval: 5
|
||||
inputs:
|
||||
- name: porte_chaudiere
|
||||
hub: pimodbus
|
||||
slave: 2
|
||||
address: 0
|
||||
input_type: discrete_input
|
||||
device_class: door
|
||||
|
||||
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## digital outputs
|
||||
# input_type: coil
|
||||
## FC=01 lire coil inputs de 00001-00158 enlever 1 a register
|
||||
######################################################################
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
inputs:
|
||||
- name: circuit chauffage pompe 1
|
||||
hub: pimodbus
|
||||
slave: 2
|
||||
address: 0
|
||||
input_type: coil
|
||||
device_class: moving
|
||||
0
config/01capteur/cover/cover.yaml
Normal file
0
config/01capteur/cover/cover.yaml
Normal file
33
config/01capteur/device_tracker/ping.yaml
Normal file
33
config/01capteur/device_tracker/ping.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
# Example configuration.yaml entry
|
||||
device_tracker:
|
||||
- platform: ping
|
||||
hosts:
|
||||
ipad_denis_p: 10.0.0.150
|
||||
ipad_gilles_p: 10.0.0.223
|
||||
iphone_gilles_p: 10.0.0.103
|
||||
iphone_denis_p: 10.0.0.141
|
||||
|
||||
binary_sensor:
|
||||
- platform: ping
|
||||
hosts:
|
||||
d_pc_domotic: 10.0.0.4
|
||||
d_vm_mqtt: 10.0.0.3
|
||||
d_vm_node_red: 10.0.0.9
|
||||
d_vm_docker: 10.0.0.8
|
||||
d_pi_chauff: 10.0.0.7
|
||||
d_pi0_comble: 10.0.0.6
|
||||
# d_pi_solar: 10.0.0.14
|
||||
# d_pi0_cave: 10.0.0.35
|
||||
d_sonoff_ballon: 10.0.0.52
|
||||
d_sonoff_ecl_bois: 10.0.0.60
|
||||
d_sonoff_dressing: 10.0.0.62
|
||||
d_nodemcu_volet_sal1: 10.0.0.74
|
||||
d_nodemcu_volet_sal2: 10.0.0.75
|
||||
#d_port_lenovo: 10.0.0.113
|
||||
#h_sonnette: 10.0.0.208
|
||||
pi0_bureau: 10.0.0.30
|
||||
pi0_comble: 10.0.0.31
|
||||
h_wifi_home: 10.0.0.251
|
||||
h_wifi_linksys_g: 10.0.0.100
|
||||
h_rm_pro: 10.0.0.112
|
||||
h_tv: 10.0.0.237
|
||||
58
config/01capteur/irrigation.yaml
Normal file
58
config/01capteur/irrigation.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
#https://github.com/rgc99/irrigation_unlimited
|
||||
controllers:
|
||||
zones:
|
||||
- name: "Rosiers"
|
||||
entity_id: "switch.rosier_1"
|
||||
duration: "00:03:00"
|
||||
- name: "Terrasse"
|
||||
entity_id: "switch.terrasse_2"
|
||||
duration: "00:02:00"
|
||||
- name: "Vigne"
|
||||
entity_id: "switch.vigne_3"
|
||||
duration: "00:05:00"
|
||||
sequences:
|
||||
- name: "hiver"
|
||||
duration: "00:02"
|
||||
delay: "00:01"
|
||||
schedules:
|
||||
- time: "06:30"
|
||||
weekday: [mon, tue, wed, thu, fri, sat, sun]
|
||||
month: [dec, jan, feb]
|
||||
zones:
|
||||
- zone_id: 1
|
||||
- zone_id: 2
|
||||
- zone_id: 3
|
||||
- name: "Eté"
|
||||
duration: "00:02"
|
||||
delay: "00:01"
|
||||
schedules:
|
||||
- time: "06:30"
|
||||
weekday: [mon, tue, wed, thu, fri, sat, sun]
|
||||
month: [jun, jul, aug]
|
||||
zones:
|
||||
- zone_id: 1
|
||||
- zone_id: 2
|
||||
- zone_id: 3
|
||||
- name: "Printemp & Automne"
|
||||
duration: "00:02"
|
||||
delay: "00:01"
|
||||
schedules:
|
||||
- time: "06:30"
|
||||
weekday: [mon, tue, wed, thu, fri, sat, sun]
|
||||
month: [mar, apr, may, sep, oct, nov]
|
||||
zones:
|
||||
- zone_id: 3
|
||||
- zone_id: 2
|
||||
- zone_id: 1
|
||||
|
||||
- name: "Soirée"
|
||||
duration: "00:02"
|
||||
delay: "00:01"
|
||||
schedules:
|
||||
- time: "20:30"
|
||||
weekday: [mon, tue, wed, thu, fri, sat, sun]
|
||||
month: [jun, jul, aug]
|
||||
zones:
|
||||
- zone_id: 3
|
||||
- zone_id: 2
|
||||
- zone_id: 1
|
||||
5
config/01capteur/light/.vscode/settings.json
vendored
Normal file
5
config/01capteur/light/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.yaml": "home-assistant"
|
||||
}
|
||||
}
|
||||
8
config/01capteur/light/group_lights.yaml
Normal file
8
config/01capteur/light/group_lights.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
#salon:
|
||||
# name: plafond_salon_z
|
||||
# entities:
|
||||
# - light.tz3000_qd7hej8u_ts0505b_9037cafe_level_light_color_on_off
|
||||
# - light.tz3000_qd7hej8u_ts0505b_fc94bafe_level_light_color_on_off
|
||||
|
||||
|
||||
|
||||
70
config/01capteur/light/lights.yaml
Normal file
70
config/01capteur/light/lights.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
|
||||
# #----------------------------------------
|
||||
# #
|
||||
# # RFXCOM with Node-red
|
||||
# #
|
||||
# #----------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# name: "applique_salon"
|
||||
# schema: json
|
||||
# state_topic: "home/light/a_salon"
|
||||
# command_topic: "home/light/a_salon/set"
|
||||
# brightness: true
|
||||
# rgb: false
|
||||
# brightness_scale: 100
|
||||
# unique_id: "AC/0x011E611E/1"
|
||||
# # state_topic: "home/app_salon/light/status"
|
||||
# # command_topic: "home/app_salon/light/switch"
|
||||
# # brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# # brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# # qos: 0
|
||||
# # payload_on: "On"
|
||||
# # payload_off: "Off"
|
||||
# # optimistic: false
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# name: "applique_cuisine"
|
||||
# schema: json
|
||||
# state_topic: "home/light/a_cuisine"
|
||||
# command_topic: "home/light/a_cuisine/set"
|
||||
# brightness: true
|
||||
# rgb: false
|
||||
# brightness_scale: 100
|
||||
# unique_id: "AC/0x011E611E/2"
|
||||
# # state_topic: "home/app_salon/light/status"
|
||||
# # command_topic: "home/app_salon/light/switch"
|
||||
# # brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# # brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# # qos: 0
|
||||
# # payload_on: "On"
|
||||
# # payload_off: "Off"
|
||||
# # optimistic: false
|
||||
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# name: "plafond_cuisine"
|
||||
# schema: json
|
||||
# state_topic: "home/light/p_cuisine"
|
||||
# command_topic: "home/light/p_cuisine/set"
|
||||
# brightness: true
|
||||
# rgb: false
|
||||
# brightness_scale: 100
|
||||
# unique_id: "AC/0x011E611E/4"
|
||||
# # state_topic: "home/app_salon/light/status"
|
||||
# # command_topic: "home/app_salon/light/switch"
|
||||
# # brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# # brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# # qos: 0
|
||||
# # payload_on: "On"
|
||||
# # payload_off: "Off"
|
||||
# # optimistic: false
|
||||
|
||||
|
||||
|
||||
417
config/01capteur/light/lights.yaml.old
Normal file
417
config/01capteur/light/lights.yaml.old
Normal file
@@ -0,0 +1,417 @@
|
||||
- platform: mqtt
|
||||
name: "LED"
|
||||
command_topic: "cmnd/20/Output/14"
|
||||
state_topic: "stat/20/Output/14"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 1"
|
||||
command_topic: "cmnd/20/Output/1"
|
||||
state_topic: "stat/20/Output/1"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 2"
|
||||
command_topic: "cmnd/20/Output/2"
|
||||
state_topic: "stat/20/Output/2"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 3"
|
||||
command_topic: "cmnd/20/Output/3"
|
||||
state_topic: "stat/20/Output/3"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 4"
|
||||
command_topic: "cmnd/20/Output/4"
|
||||
state_topic: "stat/20/Output/4"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 5"
|
||||
command_topic: "cmnd/20/Output/5"
|
||||
state_topic: "stat/20/Output/5"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 6"
|
||||
command_topic: "cmnd/20/Output/6"
|
||||
state_topic: "stat/20/Output/6"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 7"
|
||||
command_topic: "cmnd/20/Output/7"
|
||||
state_topic: "stat/20/Output/7"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 8"
|
||||
command_topic: "cmnd/20/Output/8"
|
||||
state_topic: "stat/20/Output/8"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 9"
|
||||
command_topic: "cmnd/20/Output/9"
|
||||
state_topic: "stat/20/Output/9"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 10"
|
||||
command_topic: "cmnd/20/Output/10"
|
||||
state_topic: "stat/20/Output/10"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 11"
|
||||
command_topic: "cmnd/20/Output/11"
|
||||
state_topic: "stat/20/Output/11"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 12"
|
||||
command_topic: "cmnd/20/Output/12"
|
||||
state_topic: "stat/20/Output/12"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay_13"
|
||||
command_topic: "cmnd/20/Output/13"
|
||||
state_topic: "stat/20/Output/13"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
- platform: mqtt
|
||||
name: "relay 14"
|
||||
command_topic: "cmnd/20/Output/14"
|
||||
state_topic: "stat/20/Output/14"
|
||||
payload_on: "0"
|
||||
payload_off: "1"
|
||||
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# tasmota
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
- platform: mqtt
|
||||
name: "Comble"
|
||||
state_topic: "stat/comble/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/comble/Power1"
|
||||
availability_topic: "tele/comble/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
- platform: mqtt
|
||||
name: "Cave"
|
||||
state_topic: "stat/cave/RESULT"
|
||||
value_template: "{{ value_json.POWER1 }}"
|
||||
command_topic: "cmnd/cave/Power1"
|
||||
availability_topic: "tele/cave/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
|
||||
- platform: mqtt
|
||||
name: "Cave2"
|
||||
state_topic: "stat/cave/RESULT"
|
||||
value_template: "{{ value_json.POWER4 }}"
|
||||
command_topic: "cmnd/cave/Power4"
|
||||
availability_topic: "tele/cave/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
- platform: mqtt
|
||||
name: "VMC1"
|
||||
state_topic: "stat/sonoffVMC/RESULT"
|
||||
value_template: "{{ value_json.POWER1 }}"
|
||||
command_topic: "cmnd/sonoffVMC/Power1"
|
||||
availability_topic: "tele/sonoffVMC/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "VMC2"
|
||||
state_topic: "stat/sonoffVMC/RESULT"
|
||||
value_template: "{{ value_json.POWER2 }}"
|
||||
command_topic: "cmnd/sonoffVMC/Power2"
|
||||
availability_topic: "tele/sonoffVMC/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
- platform: mqtt
|
||||
name: "Eclairage bois"
|
||||
state_topic: "stat/garage/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/garage/Power"
|
||||
availability_topic: "tele/garage/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "Couloir"
|
||||
state_topic: "stat/couloir/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/couloir/Power"
|
||||
availability_topic: "tele/couloir/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "Escalier"
|
||||
state_topic: "stat/escalier/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/escalier/POWER"
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
availability_topic: "tele/escalier/LWT"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
qos: 1
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "Dressing"
|
||||
state_topic: "stat/dressing/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/dressing/Power"
|
||||
availability_topic: "tele/dressing/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
|
||||
|
||||
- platform: mqtt
|
||||
name: "bureau1"
|
||||
state_topic: "stat/bureau1/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/bureau1/Power1"
|
||||
availability_topic: "tele/bureau1/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "bureau2"
|
||||
state_topic: "stat/bureau2/RESULT"
|
||||
value_template: "{{ value_json.POWER }}"
|
||||
command_topic: "cmnd/bureau2/Power1"
|
||||
availability_topic: "tele/bureau2/LWT"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "lampe_bureau"
|
||||
state_topic: "stat/desklamp/POWER"
|
||||
command_topic: "cmnd/desklamp/POWER"
|
||||
availability_topic: "tele/desklamp/LWT"
|
||||
brightness_state_topic: "stat/desklamp/RESULT"
|
||||
brightness_command_topic: "cmnd/desklamp/Dimmer"
|
||||
brightness_scale: 100
|
||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||
qos: 1
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# dimmer TUYA
|
||||
#
|
||||
#----------------------------------------
|
||||
- platform: mqtt
|
||||
name: "plafond_cuisine2"
|
||||
state_topic: "stat/plafond_cuisine/POWER"
|
||||
command_topic: "cmnd/plafond_cuisine/POWER"
|
||||
availability_topic: "tele/plafond_cuisine/LWT"
|
||||
brightness_state_topic: "stat/plafond_cuisine/RESULT"
|
||||
brightness_command_topic: "cmnd/plafond_cuisine/Dimmer"
|
||||
brightness_scale: 100
|
||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||
qos: 1
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
- platform: mqtt
|
||||
name: "plafond_salon2"
|
||||
state_topic: "stat/plafond_salon/POWER"
|
||||
command_topic: "cmnd/plafond_salon/POWER"
|
||||
availability_topic: "tele/plafond_salon/LWT"
|
||||
brightness_state_topic: "stat/plafond_salon/RESULT"
|
||||
brightness_command_topic: "cmnd/plafond_salon/Dimmer"
|
||||
brightness_scale: 100
|
||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||
qos: 1
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# H801 tasmota RGB
|
||||
#
|
||||
#----------------------------------------
|
||||
- platform: mqtt
|
||||
name: "RGB"
|
||||
state_topic: "stat/sonoffrgb/POWER"
|
||||
command_topic: "cmnd/sonoffrgb/POWER"
|
||||
#brightness_state_topic: "008565AA/rgb/brightness/status"
|
||||
#brightness_command_topic: "008565AA/rgb/brightness/set"
|
||||
rgb_state_topic: "state/sonoffrgb/color"
|
||||
rgb_command_topic: "cmnd/sonoffrgb/color"
|
||||
state_value_template: "{{ value_json.state }}"
|
||||
brightness_value_template: "{{ value_json.brightness }}"
|
||||
rgb_value_template: "{{ value_json.rgb | join(',') }}"
|
||||
qos: 0
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
optimistic: false
|
||||
#brightness: true
|
||||
#rgb: true
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# RFXCOM with Node-red
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
- platform: mqtt
|
||||
name: "applique_salon"
|
||||
schema: json
|
||||
state_topic: "home/light/a_salon"
|
||||
command_topic: "home/light/a_salon/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
unique_id: "AC/0x011E611E/1"
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
|
||||
- platform: mqtt
|
||||
name: "applique_cuisine"
|
||||
schema: json
|
||||
state_topic: "home/light/a_cuisine"
|
||||
command_topic: "home/light/a_cuisine/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
unique_id: "AC/0x011E611E/2"
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "plafond_salon"
|
||||
schema: json
|
||||
state_topic: "home/light/p_salon"
|
||||
command_topic: "home/light/p_salon/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
unique_id: "AC/0x011E611E/3"
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
- platform: mqtt
|
||||
name: "plafond_cuisine"
|
||||
schema: json
|
||||
state_topic: "home/light/p_cuisine"
|
||||
command_topic: "home/light/p_cuisine/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
unique_id: "AC/0x011E611E/4"
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
|
||||
- platform: mqtt
|
||||
name: "chambre"
|
||||
schema: json
|
||||
state_topic: "home/light/chambre"
|
||||
command_topic: "home/light/chambre/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
unique_id: "AC/0x011E611E/5"
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
9
config/01capteur/light/yeelight.yaml.old
Normal file
9
config/01capteur/light/yeelight.yaml.old
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
yeelight:
|
||||
devices:
|
||||
10.0.0.107:
|
||||
name: plafondSalon2
|
||||
transition: 1000
|
||||
use_music_mode: true
|
||||
save_on_change: true
|
||||
model: color4
|
||||
64
config/01capteur/light/yeelight_mqtt.yaml.old
Normal file
64
config/01capteur/light/yeelight_mqtt.yaml.old
Normal file
@@ -0,0 +1,64 @@
|
||||
- platform: mqtt
|
||||
name: "bureau etage"
|
||||
state_topic: "yeelight/light/bureau/status"
|
||||
command_topic: "yeelight/light/bureau/status/set"
|
||||
brightness_state_topic: "yeelight/light/bureau/bright"
|
||||
brightness_command_topic: "yeelight/light/bureau/bright/set"
|
||||
brightness_scale: 100
|
||||
color_temp_state_topic: "yeelight/light/bureau/ct"
|
||||
color_temp_command_topic: "yeelight/light/bureau/ct/set"
|
||||
qos: 0
|
||||
payload_on: "on"
|
||||
payload_off: "off"
|
||||
optimistic: false
|
||||
- platform: mqtt
|
||||
name: "salon 2"
|
||||
state_topic: "yeelight/light/salon2/status"
|
||||
command_topic: "yeelight/light/salon2/status/set"
|
||||
brightness_state_topic: "yeelight/light/salon2/bright"
|
||||
brightness_command_topic: "yeelight/light/salon2/bright/set"
|
||||
brightness_scale: 100
|
||||
color_temp_state_topic: "yeelight/light/salon2/ct"
|
||||
color_temp_command_topic: "yeelight/light/salon2/ct/set"
|
||||
min_mireds: 1700
|
||||
max_mireds: 6500
|
||||
rgb_state_topic: "yeelight/light/salon2/rgb"
|
||||
rgb_command_topic: "yeelight/light/salon2/rgb/set"
|
||||
qos: 0
|
||||
payload_on: "on"
|
||||
payload_off: "off"
|
||||
optimistic: false
|
||||
- platform: mqtt
|
||||
name: "salon 1"
|
||||
state_topic: "yeelight/light/salon1/status"
|
||||
command_topic: "yeelight/light/salon1/status/set"
|
||||
brightness_state_topic: "yeelight/light/salon1/bright"
|
||||
brightness_command_topic: "yeelight/light/salon1/bright/set"
|
||||
brightness_scale: 100
|
||||
color_temp_state_topic: "yeelight/light/salon1/ct"
|
||||
color_temp_command_topic: "yeelight/light/salon1/ct/set"
|
||||
min_mireds: 1700
|
||||
max_mireds: 6500
|
||||
rgb_state_topic: "yeelight/light/salon1/rgb"
|
||||
rgb_command_topic: "yeelight/light/salon1/rgb/set"
|
||||
qos: 0
|
||||
payload_on: "on"
|
||||
payload_off: "off"
|
||||
optimistic: false
|
||||
- platform: mqtt
|
||||
name: "chambre1"
|
||||
state_topic: "yeelight/light/chambre1/status"
|
||||
command_topic: "yeelight/light/chambre1/status/set"
|
||||
brightness_state_topic: "yeelight/light/chambre1/bright"
|
||||
brightness_command_topic: "yeelight/light/chambre1/bright/set"
|
||||
brightness_scale: 100
|
||||
color_temp_state_topic: "yeelight/light/chambre1/ct"
|
||||
color_temp_command_topic: "yeelight/light/chambre1/ct/set"
|
||||
min_mireds: 1700
|
||||
max_mireds: 6500
|
||||
rgb_state_topic: "yeelight/light/chambre1/rgb"
|
||||
rgb_command_topic: "yeelight/light/chambre1/rgb/set"
|
||||
qos: 0
|
||||
payload_on: "on"
|
||||
payload_off: "off"
|
||||
optimistic: false
|
||||
324
config/01capteur/modbus/modbus.yaml
Normal file
324
config/01capteur/modbus/modbus.yaml
Normal file
@@ -0,0 +1,324 @@
|
||||
# Digital Outputs
|
||||
# Function: Read Coil Status (FC=01)
|
||||
# Address Range: 00001-00158
|
||||
|
||||
# Digital Inputs
|
||||
# Function: Read Input Status (FC=02)
|
||||
# Address Range: 10001-10086
|
||||
|
||||
# Actual Values
|
||||
# Function: Read Input Registers(FC=04)
|
||||
# Address Range: 30001-30272
|
||||
# input_type : input
|
||||
|
||||
# Parameters
|
||||
# Function: Read Holding Registers(FC=03)
|
||||
# Address Range: 40001-41094
|
||||
# input_type: holding
|
||||
|
||||
#- name: froling_S3
|
||||
# type: tcp
|
||||
# host: 10.0.0.12
|
||||
# port: 502
|
||||
# maybe need 1 second delay after connect for device to get ready
|
||||
#delay: 1
|
||||
# sensors:
|
||||
# # SYSTEM STATUS
|
||||
# - name: Modbus PE1 System Status Enum
|
||||
# unique_id: modbus_pe1_system_status_enum
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 4000
|
||||
# scan_interval: 30
|
||||
# device_class: enum
|
||||
# - name: Modbus PE1 Furnace Status Enum
|
||||
# unique_id: modbus_pe1_furnace_status_enum
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 4001
|
||||
# scan_interval: 30
|
||||
# device_class: enum
|
||||
# # - name: Modbus PE1 Heating Mode Enum
|
||||
# # unique_id: modbus_pe1_heating_mode_enum
|
||||
# # slave: 2
|
||||
# # input_type: holding
|
||||
# # address: 8046
|
||||
# # scan_interval: 30
|
||||
# # device_class: enum
|
||||
|
||||
# # TEMPERATURES
|
||||
# - name: Modbus PE1 Hotwater Temperature Top
|
||||
# unique_id: modbus_pe1_hotwater_temperature_top
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# # 31631 - 30001 = 1630
|
||||
# address: 1630
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Furnace Temperature
|
||||
# unique_id: modbus_pe1_furnace_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 0
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Calculated Heater Target Temperature
|
||||
# unique_id: modbus_pe1_calculated_heater_target_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 27
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Return Flow Temperature
|
||||
# unique_id: modbus_pe1_return_flow_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 9
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Calculated Target Return Flow Temperature
|
||||
# unique_id: modbus_pe1_calculated_target_return_flow_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 66
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Target Flow Temperature At Circulation Line
|
||||
# unique_id: modbus_pe1_return_flow_temperature_at_circulation_line
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 711
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Outside Temperature
|
||||
# unique_id: modbus_pe1_outside_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 1000
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Flow Temperature Actual
|
||||
# unique_id: modbus_pe1_flow_temperature_actual
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 1030
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Flow Temperature Target
|
||||
# unique_id: modbus_pe1_flow_temperature_target
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 1031
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Room Temperature
|
||||
# unique_id: modbus_pe1_room_temperature
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 1032
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Buffer Temperature Top
|
||||
# unique_id: modbus_pe1_buffer_temperature_top
|
||||
# slave: 2
|
||||
# data_type: float16
|
||||
# input_type: input
|
||||
# address: 30121
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
# - name: Modbus PE1 Buffer Temperature Bottom
|
||||
# unique_id: modbus_pe1_buffer_temperature_bottom
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# data_type: float16
|
||||
# address: 30119
|
||||
# scan_interval: 30
|
||||
# scale: 0.5
|
||||
# precision: 0
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: °C
|
||||
|
||||
# # CONSUMPTION
|
||||
# - name: Modbus PE1 Total Pellet Consumption
|
||||
# unique_id: modbus_pe1_total_pellet_consumption
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 83
|
||||
# scan_interval: 3600
|
||||
# scale: 0.1
|
||||
# precision: 1
|
||||
# device_class: weight
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: mg
|
||||
# - name: Modbus PE1 Pellet Consumption KG
|
||||
# unique_id: modbus_pe1_pellet_consumption_kg
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 81
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: weight
|
||||
# state_class: total
|
||||
# unit_of_measurement: kg
|
||||
# - name: Modbus PE1 Pellet Fill Level
|
||||
# unique_id: modbus_pe1_pellet_fill_level
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 21
|
||||
# scan_interval: 3600
|
||||
# scale: 0.005
|
||||
# precision: 1
|
||||
# device_class: battery
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '%'
|
||||
|
||||
# # PUMP CONTROLS
|
||||
# - name: Modbus PE1 Return Flow Pump Control
|
||||
# unique_id: modbus_pe1_return_flow_pump_control
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 36
|
||||
# scan_interval: 30
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: power_factor
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '%'
|
||||
# - name: Modbus PE1 Water Boiler Pump Control
|
||||
# unique_id: modbus_pe1_water_boiler_pump_control
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 1632
|
||||
# scan_interval: 30
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: power_factor
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '%'
|
||||
# - name: Modbus PE1 Buffer Pump Control
|
||||
# unique_id: modbus_pe1_buffer_pump_control
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 2003
|
||||
# scan_interval: 30
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: power_factor
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '%'
|
||||
|
||||
# # BUFFER CHARGE
|
||||
# - name: Modbus PE1 Buffer Charge
|
||||
# unique_id: modbus_pe1_buffer_charge
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 2006
|
||||
# scan_interval: 30
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: battery
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '%'
|
||||
|
||||
# # MISC
|
||||
# - name: Modbus PE1 Operating Hours
|
||||
# unique_id: modbus_pe1_operating_hours
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 20
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: duration
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'h'
|
||||
# - name: Modbus PE1 Hours Since Last Maintenance
|
||||
# unique_id: modbus_pe1_hours_since_last_maintenance
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 55
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: duration
|
||||
# state_class: total
|
||||
# unit_of_measurement: 'h'
|
||||
# - name: Modbus PE1 Hours Of Pellets Operation
|
||||
# unique_id: modbus_pe1_hours_of_pellets_operation
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 62
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: duration
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'h'
|
||||
# - name: Modbus PE1 Hours Of Heating
|
||||
# unique_id: modbus_pe1_hours_of_heating
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 63
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: duration
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'h'
|
||||
# - name: Modbus PE1 Hours Until Ash Removal
|
||||
# unique_id: modbus_pe1_hours_until_ash_removal
|
||||
# slave: 2
|
||||
# input_type: input
|
||||
# address: 86
|
||||
# scan_interval: 3600
|
||||
# scale: 1
|
||||
# precision: 0
|
||||
# device_class: duration
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: 'h'
|
||||
5
config/01capteur/mqtt/.vscode/settings.json
vendored
Normal file
5
config/01capteur/mqtt/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.yaml": "home-assistant"
|
||||
}
|
||||
}
|
||||
36
config/01capteur/mqtt/binary_sensor/binarysensor.yaml
Normal file
36
config/01capteur/mqtt/binary_sensor/binarysensor.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
- unique_id: "door_swith_04"
|
||||
name: "porte bureau"
|
||||
state_topic: "switch/porte/bureau"
|
||||
# command_topic: "switch/porte/bureau"
|
||||
device_class: door
|
||||
payload_on: "1"
|
||||
payload_off: "0"
|
||||
#- unique_id: "door_swith_02"
|
||||
# name: "porte garage"
|
||||
# state_topic: "arduino/garage/p_garage"
|
||||
# command_topic: "switch/porte/bureau"
|
||||
# device_class: door
|
||||
# payload_on: "OPEN"
|
||||
# payload_off: "CLOSED"
|
||||
|
||||
#- unique_id: "door_swith_03"
|
||||
# name: "porte cave"
|
||||
# state_topic: "switch/porte/cave"
|
||||
# command_topic: "switch/porte/bureau"
|
||||
# device_class: door
|
||||
# payload_on: "1"
|
||||
# payload_off: "0"
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# Bouton poussoir
|
||||
#
|
||||
#----------------------------------------
|
||||
#- unique_id: switch_chambre_01
|
||||
# name: "Chambre1"
|
||||
# state_topic: "switch/chambre"
|
||||
# command_topic: "switch/porte/bureau"
|
||||
# device_class: light
|
||||
# payload_on: "1"
|
||||
# payload_off: "0"
|
||||
19
config/01capteur/mqtt/binary_sensor/chaudiere.yaml.old
Normal file
19
config/01capteur/mqtt/binary_sensor/chaudiere.yaml.old
Normal file
@@ -0,0 +1,19 @@
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## digital inputs
|
||||
# input_type: discrete_input
|
||||
## FC=02 lire discrete inputs de 10001-10086 enlever 1 a register
|
||||
######################################################################
|
||||
- unique_id: "porte_chaudiere"
|
||||
state_topic: "chaudiere/porte"
|
||||
#device_class: "opening"
|
||||
name: "porte chaudiere"
|
||||
payload_on: "1"
|
||||
payload_off: "0"
|
||||
device_class: door
|
||||
|
||||
|
||||
#state_topic: "switch/porte/chaudiere"
|
||||
# command_topic: "switch/porte/bureau"
|
||||
|
||||
|
||||
62
config/01capteur/mqtt/light/light.yaml
Normal file
62
config/01capteur/mqtt/light/light.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
#----------------------------------------
|
||||
#
|
||||
# RFXCOM with Node-red
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
- unique_id: "AC/0x011E611E/1"
|
||||
name: "applique_salon"
|
||||
schema: json
|
||||
state_topic: "home/light/a_salon"
|
||||
command_topic: "home/light/a_salon/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
|
||||
- unique_id: "AC/0x011E611E/2"
|
||||
name: "applique_cuisine"
|
||||
schema: json
|
||||
state_topic: "home/light/a_cuisine"
|
||||
command_topic: "home/light/a_cuisine/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
|
||||
|
||||
|
||||
- unique_id: "AC/0x011E611E/4"
|
||||
name: "plafond_cuisine"
|
||||
schema: json
|
||||
state_topic: "home/light/p_cuisine"
|
||||
command_topic: "home/light/p_cuisine/set"
|
||||
brightness: true
|
||||
rgb: false
|
||||
brightness_scale: 100
|
||||
|
||||
# state_topic: "home/app_salon/light/status"
|
||||
# command_topic: "home/app_salon/light/switch"
|
||||
# brightness_state_topic: 'home/app_salon/light/brightness'
|
||||
# brightness_command_topic: 'home/app_salon/light/brightness/set'
|
||||
# qos: 0
|
||||
# payload_on: "On"
|
||||
# payload_off: "Off"
|
||||
# optimistic: false
|
||||
10
config/01capteur/mqtt/mqtt.yaml
Normal file
10
config/01capteur/mqtt/mqtt.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
sensor:
|
||||
!include_dir_merge_list sensor/
|
||||
switch:
|
||||
!include_dir_merge_list switch/
|
||||
light:
|
||||
!include_dir_merge_list light/
|
||||
binary_sensor:
|
||||
!include_dir_merge_list binary_sensor/
|
||||
number:
|
||||
!include_dir_merge_list number/
|
||||
8
config/01capteur/mqtt/number/number.yaml
Normal file
8
config/01capteur/mqtt/number/number.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# - unique_id: mqtt_servo1
|
||||
# name: mqtt_servo
|
||||
# state_topic: arduinomegatest/servo/status
|
||||
# command_topic: arduinomegatest/servo/cmnd
|
||||
# min: 0
|
||||
# max: 100
|
||||
# step: 1
|
||||
# icon: mdi:engine
|
||||
66
config/01capteur/mqtt/sensor/sensor.yaml.old
Normal file
66
config/01capteur/mqtt/sensor/sensor.yaml.old
Normal file
@@ -0,0 +1,66 @@
|
||||
#----------------------------------------
|
||||
#
|
||||
# lux
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
#- unique_id: luminosite_salon_01
|
||||
# state_topic: "sensor/lux"
|
||||
# name: "Luminosité"
|
||||
# device_class: illuminance
|
||||
# unit_of_measurement: "lx"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
|
||||
#- unique_id: courant_t_div_01
|
||||
# state_topic: "arduino/garage/intensite"
|
||||
# name: "Intensité t_divisionnaire"
|
||||
# unit_of_measurement: "A"
|
||||
# device_class: current
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
#- unique_id: power_t_div_01
|
||||
# state_topic: "arduino/garage/puissance"
|
||||
# name: "Puissance t_divisionnaire"
|
||||
# device_class: power
|
||||
# unit_of_measurement: "W"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# chauffage reglage PID
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
- unique_id: "chauff_pid_payload_01"
|
||||
state_topic: "sensor/chauff/pid/payload"
|
||||
name: "payload"
|
||||
- unique_id: "chauff_pid_pv_01"
|
||||
state_topic: "sensor/chauff/pid/pv"
|
||||
name: "pv"
|
||||
value_template: "{{ value | round(3) }}"
|
||||
- unique_id: "chauff_pid_setpoint_01"
|
||||
state_topic: "sensor/chauff/pid/setpoint"
|
||||
name: "setpoint"
|
||||
- unique_id: "chauff_pid_proportional_01"
|
||||
state_topic: "sensor/chauff/pid/proportional"
|
||||
name: "P"
|
||||
value_template: "{{ value | round(3) }}"
|
||||
- unique_id: "chauff_pid_integral_01"
|
||||
state_topic: "sensor/chauff/pid/integral"
|
||||
name: "I"
|
||||
value_template: "{{ value | round(3) }}"
|
||||
- unique_id: "chauff_pid_pderivative_01"
|
||||
state_topic: "sensor/chauff/pid/derivative"
|
||||
name: "D"
|
||||
value_template: "{{ value | round(3) }}"
|
||||
|
||||
|
||||
- unique_id: tempe_pc_domotic
|
||||
state_topic: "domotic/ISAadapter/Package id 0"
|
||||
name: "Temp PC Domotic"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
33
config/01capteur/mqtt/sensor/sensor_arduino_power.yaml.old
Normal file
33
config/01capteur/mqtt/sensor/sensor_arduino_power.yaml.old
Normal file
@@ -0,0 +1,33 @@
|
||||
#arduino mega avec pzem
|
||||
- unique_id: "tab_domo_voltage"
|
||||
state_topic: "comble/pzem/voltage"
|
||||
name: "voltage_tableau_domotique"
|
||||
device_class: voltage
|
||||
unit_of_measurement: "V"
|
||||
state_class: measurement
|
||||
value_template: "{{ value | round(12) }}"
|
||||
|
||||
- unique_id: "tab_domo_current"
|
||||
state_topic: "comble/pzem/courant"
|
||||
name: "courant_tableau_domotique"
|
||||
device_class: current
|
||||
unit_of_measurement: "A"
|
||||
state_class: measurement
|
||||
value_template: "{{ value | round(2) }}"
|
||||
|
||||
- unique_id: "tab_domo_power"
|
||||
state_topic: "comble/pzem/power"
|
||||
name: "Power_tableau_domotique"
|
||||
icon: mdi:solar-power
|
||||
device_class: power
|
||||
unit_of_measurement: "W"
|
||||
state_class: measurement
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: "tab_domo_energy_total"
|
||||
state_topic: "comble/pzem/energy"
|
||||
name: "tableau_domotique_Energy"
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: "Wh"
|
||||
value_template: "{{ value | round(2) }}"
|
||||
97
config/01capteur/mqtt/sensor/sensor_chaudiere.yaml.old
Normal file
97
config/01capteur/mqtt/sensor/sensor_chaudiere.yaml.old
Normal file
@@ -0,0 +1,97 @@
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## actual value - input register
|
||||
# register_type: input
|
||||
## FC=04 de 30001-30272 enlever 1 a register
|
||||
######################################################################
|
||||
|
||||
- unique_id: temp_chaud_01
|
||||
state_topic: "chaudiere/t_chaud"
|
||||
unit_of_measurement: "°C"
|
||||
device_class: temperature
|
||||
name: "T° chaudiere"
|
||||
- unique_id: temp_fumee_01
|
||||
state_topic: "chaudiere/t_fumee"
|
||||
name: "T° fumée"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
- unique_id: temp_board_01
|
||||
state_topic: "chaudiere/t_board"
|
||||
name: "T° board"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
- unique_id: temp_ext_N_01
|
||||
state_topic: "chaudiere/t_ext"
|
||||
name: "T°exterieur nord"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
|
||||
- unique_id: venti_chaud_01
|
||||
state_topic: "chaudiere/vit_venti"
|
||||
name: "Ventilation"
|
||||
unit_of_measurement: "U/min"
|
||||
|
||||
|
||||
- unique_id: heure_chauff_01
|
||||
state_topic: "chaudiere/h_chauffage"
|
||||
name: "Heure de chauffage"
|
||||
unit_of_measurement: "h"
|
||||
|
||||
|
||||
- unique_id: heure_serv_01
|
||||
state_topic: "chaudiere/h_service"
|
||||
name: "Heure de service"
|
||||
unit_of_measurement: "h"
|
||||
|
||||
|
||||
- unique_id: temp_dep_chauff_01
|
||||
state_topic: "chaudiere/t_dep_chauff"
|
||||
name: "T° départ"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
|
||||
- unique_id: charge_tampon_01
|
||||
state_topic: "chaudiere/charge_tampon"
|
||||
name: "Charge du tampon"
|
||||
|
||||
|
||||
- unique_id: tampon_haut_01
|
||||
state_topic: "chaudiere/tampon_haut"
|
||||
name: "tampon haut"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
|
||||
- unique_id: tampon_bas_01
|
||||
state_topic: "chaudiere/tampon_bas"
|
||||
name: "tampon bas"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
|
||||
- unique_id: temp_cons_fumee_01
|
||||
state_topic: "chaudiere/cons_t_fumee"
|
||||
name: "Consigne T° fumée"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
|
||||
|
||||
- unique_id: etat_chaud_01
|
||||
state_topic: "chaudiere/etat_chaudiere"
|
||||
name: "Etat chaudiere"
|
||||
|
||||
|
||||
- unique_id: O2_resi_01
|
||||
state_topic: "chaudiere/O2_res"
|
||||
name: "O2_residuel"
|
||||
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## parameter - holding registers
|
||||
# register_type: holding
|
||||
## FC=03 de 40001-41094 enlever 1 a register
|
||||
######################################################################
|
||||
|
||||
40
config/01capteur/mqtt/sensor/sensor_portable.yaml.old
Normal file
40
config/01capteur/mqtt/sensor/sensor_portable.yaml.old
Normal file
@@ -0,0 +1,40 @@
|
||||
# pc portable lenovo battery
|
||||
- unique_id: portable_lenovo_battery
|
||||
name: portable_lenovo_battery
|
||||
device_class: battery
|
||||
unit_of_measurement: "%"
|
||||
# payload_on: low
|
||||
# payload_off: normal
|
||||
qos: 1
|
||||
#availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
#payload_available: online
|
||||
#payload_not_available: offline
|
||||
state_topic: computer/lenovo
|
||||
value_template: "{{ value_json.percent }}"
|
||||
|
||||
- unique_id: portable_elitebook_corei5
|
||||
name: portable_elitebook_corei5
|
||||
device_class: battery
|
||||
unit_of_measurement: "%"
|
||||
# payload_on: low
|
||||
# payload_off: normal
|
||||
qos: 1
|
||||
#availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
#payload_available: online
|
||||
#payload_not_available: offline
|
||||
state_topic: computer/corei5
|
||||
value_template: "{{ value_json.percent }}"
|
||||
|
||||
|
||||
- unique_id: portable_elitebook_centrino
|
||||
name: portable_elitebook_centrino
|
||||
device_class: battery
|
||||
unit_of_measurement: "%"
|
||||
# payload_on: low
|
||||
# payload_off: normal
|
||||
qos: 1
|
||||
#availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
#payload_available: online
|
||||
#payload_not_available: offline
|
||||
state_topic: computer/centrino
|
||||
value_template: "{{ value_json.percent }}"
|
||||
244
config/01capteur/mqtt/sensor/sensor_solar.yaml
Normal file
244
config/01capteur/mqtt/sensor/sensor_solar.yaml
Normal file
@@ -0,0 +1,244 @@
|
||||
# # modbus sensors for EPEver
|
||||
# - unique_id: "array_voltage"
|
||||
# ## reg 3100
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_voltage"
|
||||
# name: "solar_PV_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(12) }}"
|
||||
|
||||
# - unique_id: "array_current"
|
||||
# ## reg 3101
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_current"
|
||||
# name: "solar_PV_Current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "array_power"
|
||||
# ## reg 3102 3103
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_power"
|
||||
# name: "solar_PV_Power"
|
||||
# icon: mdi:solar-power
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "battery_voltage"
|
||||
# ## reg 3104
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_voltage"
|
||||
# name: "solar_Battery_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "battery_charging_current"
|
||||
# ##reg 3105
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_charging_current"
|
||||
# name: "Battery_charging_Current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "max_battery_voltage_today_01"
|
||||
# #reg 3302
|
||||
# state_topic: "tracer/sensor/tracer_1_max_battery_voltage_today"
|
||||
# name: "solar_Battery_Max_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "min_battery_voltage_today_01"
|
||||
# #reg 3303
|
||||
# state_topic: "tracer/sensor/tracer_1_min_battery_voltage_today"
|
||||
# name: "solar_Battery_Min_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "net_battery_current"
|
||||
# ##reg 331B-331C
|
||||
# state_topic: "tracer/sensor/tracer_1_net_battery_current"
|
||||
# name: "net_Battery_Current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "battery_power"
|
||||
# state_topic: "tracer/registers/Charging equipment output power/value"
|
||||
# name: "solar_Battery_Power"
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "battery_temperature"
|
||||
# #reg 3110
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_temperature"
|
||||
# name: "solar_Battery_Temperature"
|
||||
# icon: mdi:thermometer
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '°C'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "battery_SOC"
|
||||
# #reg 311A
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_soc"
|
||||
# name: "solar_Battery_SOC"
|
||||
# unit_of_measurement: '%'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "device_temperature"
|
||||
# #reg 3111
|
||||
# state_topic: "tracer/sensor/tracer_1_charger_temperature"
|
||||
# name: "solar_device_Temperature"
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '°C'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "solar_PV_status"
|
||||
# ## reg 3201
|
||||
# state_topic: "tracer/sensor/tracer_1_equipment_status"
|
||||
# name: "solar_PV_Status"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - unique_id: "battery_status"
|
||||
# ## reg 3200
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_status"
|
||||
# name: "solar_battery_Status"
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - unique_id: "generated_energy_today"
|
||||
# ## reg 330C-330D
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_today"
|
||||
# name: "generated_Today_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "generated_energy_total"
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_total_generated_energy"
|
||||
# name: "generated_total_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "generated_energy_month"
|
||||
# ## reg 330E-330F
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_this_month"
|
||||
# name: "generated_month_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "generated_energy_year"
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_this_year"
|
||||
# name: "generated_year_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "load power"
|
||||
# ##reg 310E-310F
|
||||
# state_topic: "tracer/sensor/tracer_1_load_power"
|
||||
# name: "DC_Load_Power"
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "load voltage"
|
||||
# ## reg 310C
|
||||
# state_topic: "tracer/sensor/tracer_1_load_voltage"
|
||||
# name: "DC_Load_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "load current"
|
||||
# ## reg 310D
|
||||
# state_topic: "tracer/sensor/tracer_1_load_current"
|
||||
# name: "DC_Load_Courant"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "tracer_1_day_night"
|
||||
# ## reg 200C
|
||||
# state_topic: "tracer/sensor/tracer_1_day/night"
|
||||
# name: "solar_Day_Night"
|
||||
# #device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - unique_id: "energy_today"
|
||||
# ## reg 330C-330D
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_today"
|
||||
# name: "consumed_Today_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "consumed_energy_total"
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_total_consumed_energy"
|
||||
# name: "consumed_Total_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "consumed_energy_month"
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_this_month"
|
||||
# name: "consumed_Month_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "consumed_energy_year"
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_this_year"
|
||||
# name: "consumed_Year_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - unique_id: "charging mode"
|
||||
# ## reg 3201
|
||||
# state_topic: "tracer/sensor/tracer_1_charging_mode"
|
||||
# name: "charging mode"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: "servo_pos1"
|
||||
# ## reg 3201
|
||||
# state_topic: "arduinomegatest/servo/status"
|
||||
# name: "servo_pos"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# # value_template: "{{ value }}"
|
||||
49
config/01capteur/mqtt/sensor/sensor_solar_ecu.yaml
Normal file
49
config/01capteur/mqtt/sensor/sensor_solar_ecu.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
# - unique_id: ecuR_courant
|
||||
# state_topic: "stat/ecu_r/current"
|
||||
# name: "courant ecuR"
|
||||
# device_class: current
|
||||
# unit_of_measurement: "A"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_tension
|
||||
# state_topic: "stat/ecu_r/volt"
|
||||
# name: "tension ecuR"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: "V"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_puissance
|
||||
# state_topic: "stat/ecu_r/power"
|
||||
# name: "puissance ecuR"
|
||||
# device_class: power
|
||||
# unit_of_measurement: "W"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_frequence
|
||||
# state_topic: "stat/ecu_r/frequency"
|
||||
# name: "frequence ecuR"
|
||||
# device_class: frequency
|
||||
# unit_of_measurement: "Hz"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_cos_phi
|
||||
# state_topic: "stat/ecu_r/cos_phi"
|
||||
# name: "cos Phi ecuR"
|
||||
# device_class: power_factor
|
||||
# unit_of_measurement: "%"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_temperature
|
||||
# state_topic: "stat/ecu_r/temperature"
|
||||
# name: "temperature ecuR"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - unique_id: ecuR_energy_today
|
||||
# state_topic: "stat/ecu_r/energy_today"
|
||||
# name: "energy_today ecuR"
|
||||
# device_class: energy
|
||||
# unit_of_measurement: "Wh"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# state_class: total_increasing
|
||||
62
config/01capteur/mqtt/sensor/sensor_temperature.yaml
Normal file
62
config/01capteur/mqtt/sensor/sensor_temperature.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
---
|
||||
#----------------------------------------
|
||||
#
|
||||
# temperature
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
- unique_id: temp_bureau_01
|
||||
state_topic: "temp/bureau"
|
||||
name: "T Bureau"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
#- unique_id: temp_cave_01
|
||||
# state_topic: "temp/cave"
|
||||
# name: "T Cave"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
#- unique_id: temp_garage_01
|
||||
# state_topic: "temp/garage"
|
||||
# name: "T Garage"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: temp_chambre_01
|
||||
state_topic: "temp/chambre1"
|
||||
name: "T Chambre1"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: temp_chambre_02
|
||||
state_topic: "temp/chambre2"
|
||||
name: "T Chambre2"
|
||||
unit_of_measurement: "°C"
|
||||
device_class: temperature
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: temp_comble_01
|
||||
state_topic: "temp/comble"
|
||||
name: "T Comble"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: hum_sdb_01
|
||||
state_topic: "hum/sdb"
|
||||
name: "H% salle de bain"
|
||||
device_class: humidity
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
|
||||
- unique_id: temp_sdb_01
|
||||
state_topic: "temp/sdb"
|
||||
name: "T salle de bain"
|
||||
device_class: temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value | round(1) }}"
|
||||
17
config/01capteur/mqtt/switch/switch.yaml.old
Normal file
17
config/01capteur/mqtt/switch/switch.yaml.old
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
- unique_id: bedroom_switch
|
||||
name: "Bedroom Switch"
|
||||
state_topic: "home/bedroom/switch1"
|
||||
command_topic: "home/bedroom/switch1/set"
|
||||
availability:
|
||||
- topic: "home/bedroom/switch1/available"
|
||||
payload_not_available: "offline"
|
||||
payload_available: "online"
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
state_on: "ON"
|
||||
state_off: "OFF"
|
||||
optimistic: false
|
||||
qos: 0
|
||||
retain: true
|
||||
28
config/01capteur/mqtt/switch/switch2.yaml.old
Normal file
28
config/01capteur/mqtt/switch/switch2.yaml.old
Normal file
@@ -0,0 +1,28 @@
|
||||
#----------------------------------------
|
||||
#
|
||||
# on off konica
|
||||
#
|
||||
#----------------------------------------
|
||||
- unique_id: switch_konica_01
|
||||
name: "switch_konica"
|
||||
command_topic: "cmnd/konica/power"
|
||||
state_topic: "stat/konica/power"
|
||||
payload_on: "on"
|
||||
payload_off: "off"
|
||||
|
||||
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# relay chaudiere
|
||||
#
|
||||
#----------------------------------------
|
||||
- unique_id: relay_chaudiere_01
|
||||
name: "relay_chauffage"
|
||||
command_topic: "cmnd/relay/chaudiere"
|
||||
state_topic: "stat/relay/chaudiere"
|
||||
payload_on: "1"
|
||||
payload_off: "0"
|
||||
|
||||
|
||||
647
config/01capteur/openhasp.yaml.old
Normal file
647
config/01capteur/openhasp.yaml.old
Normal file
@@ -0,0 +1,647 @@
|
||||
#openhasp:
|
||||
plate1:
|
||||
objects:
|
||||
- obj: "p0b2"
|
||||
properties:
|
||||
"text": '{{ states("sensor.ecowitt_temp")| float | round(1) }}°C'
|
||||
- obj: "p0b1" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.ecowitt_tempin")| float | round(1)}}°C'
|
||||
#page 1 sensor:
|
||||
- obj: "p1b11" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.temp_fumee")| float | round(1) }}°C'
|
||||
- obj: "p1b13" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.temp_depart_chauffage")| float | round(1) }}°C'
|
||||
|
||||
#page 1 light:
|
||||
|
||||
- obj: "p1b1" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.lumieres_couloir") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.lumieres_couloir", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.lumieres_couloir"
|
||||
|
||||
- obj: "p1b2" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.applique_salon") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.applique_salon", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.applique_salon"
|
||||
|
||||
- obj: "p1b3" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.applique_cuisine") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.applique_cuisine", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.applique_cuisine"
|
||||
|
||||
- obj: "p1b4" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.lumieres_escaliers") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.lumieres_escaliers", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.lumieres_escaliers"
|
||||
|
||||
- obj: "p1b7" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.eclairage_bois") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.eclairage_bois", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.eclairage_bois"
|
||||
- obj: "p1b8" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.yeelight_color4_0x15771126") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.yeelight_color4_0x15771126", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.yeelight_color4_0x15771126"
|
||||
|
||||
- obj: "p1b9" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("switch.kc868_a8_d758d0_d758d0_lumiere_comble_kc") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("switch.kc868_a8_d758d0_d758d0_lumiere_comble_kc", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "switch.kc868_a8_d758d0_d758d0_lumiere_comble_kc"
|
||||
#page 2 light
|
||||
- obj: "p2b21" # Light brightness
|
||||
properties:
|
||||
"val": "{{ state_attr('light.applique_salon', 'brightness') if state_attr('light.applique_salon', 'brightness') != None else 0 }}"
|
||||
event:
|
||||
"changed":
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.applique_salon
|
||||
brightness: "{{ val }}"
|
||||
"up":
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.applique_salon
|
||||
brightness: "{{ val }}"
|
||||
- obj: "p2b23" # Light brightness
|
||||
properties:
|
||||
"val": "{{ state_attr('light.lumieres_plafond', 'brightness') if state_attr('light.lumieres_plafond', 'brightness') != None else 0 }}"
|
||||
event:
|
||||
"changed":
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.lumieres_plafond
|
||||
brightness: "{{ val }}"
|
||||
"up":
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.lumieres_plafond
|
||||
brightness: "{{ val }}"
|
||||
- obj: "p2b25" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("light.eclairage_bois") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("light.eclairage_bois", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "light.eclairage_bois"
|
||||
|
||||
#thermostat
|
||||
- obj: "p3b20" # arc slider
|
||||
properties:
|
||||
"val": >
|
||||
{% if state_attr('climate.salon','temperature') is not none %}
|
||||
{{ state_attr('climate.salon','temperature') | int * 10 }}
|
||||
{%- endif %}
|
||||
"min": >
|
||||
{% if state_attr('climate.salon','min_temp') is not none %}
|
||||
{{ state_attr('climate.salon','min_temp') | int * 10 }}
|
||||
{%- endif %}
|
||||
"max": >
|
||||
{% if state_attr('climate.salon','max_temp') is not none %}
|
||||
{{ state_attr('climate.salon','max_temp') | int * 10 }}
|
||||
{%- endif %}
|
||||
"opacity": "{{ 60 if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 255 }}"
|
||||
"click": "{{ 'false' if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 'true' }}"
|
||||
"line_color1": >
|
||||
{% if is_state('climate.salon', 'cool') %}
|
||||
{{ "#346beb" }}
|
||||
{%-elif is_state('climate.salon', 'heat_cool') %}
|
||||
{{ "#34bdeb" }}
|
||||
{%-elif is_state('climate.salon', 'heat') %}
|
||||
{{ "#eb3434" }}
|
||||
{%-elif is_state('climate.salon', 'dry') %}
|
||||
{{ "#ebeb34" }}
|
||||
{%-elif is_state('climate.salon', 'fan_only') %}
|
||||
{{ "#34eb77" }}
|
||||
{%-else %}
|
||||
{{ "#9f96b0" }}
|
||||
{% endif %}
|
||||
event:
|
||||
"changed":
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
temperature: "{{ val | int / 10 }}"
|
||||
"up":
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
temperature: "{{ val | int / 10 }}"
|
||||
|
||||
- obj: "p3b21" # gauge current temp
|
||||
properties:
|
||||
"val": >
|
||||
{% if not (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) %}
|
||||
{{ states('climate.salon') | float (default=0) * 10 }}
|
||||
{%- endif %}
|
||||
"min": >
|
||||
{% if state_attr('climate.salon','min_temp') is not none %}
|
||||
{{ state_attr('climate.salon','min_temp') | int * 10 }}
|
||||
{%- endif %}
|
||||
"max": >
|
||||
{% if state_attr('climate.salon','max_temp') is not none %}
|
||||
{{ state_attr('climate.salon','max_temp') | int * 10 }}
|
||||
{%- endif %}
|
||||
"critical_value": >
|
||||
{% if state_attr('climate.salon','max_temp') is not none %}
|
||||
{{ state_attr('climate.salon','max_temp') | int * 10 + 1 }}
|
||||
{%- endif %}
|
||||
"label_count": >
|
||||
{% if state_attr('climate.salon','max_temp') is not none %}
|
||||
{{ state_attr('climate.salon','max_temp') | int - state_attr('climate.salon','min_temp') | int + 1 }}
|
||||
{%- endif %}
|
||||
"line_count": >
|
||||
{% if state_attr('climate.salon','max_temp') is not none %}
|
||||
{{ (state_attr('climate.salon','max_temp') | int - state_attr('climate.salon','min_temp') | int) * 2 + 1 }}
|
||||
{%- endif %}
|
||||
"opacity": "{{ 60 if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 255 }}"
|
||||
|
||||
- obj: "p3b23" # label current temp (and +/- with short/long touch)
|
||||
properties:
|
||||
"text": >
|
||||
{% if (is_state('sensor.ecowitt_tempin','unavailable') or is_state('sensor.ecowitt_tempin','unknown')) %}
|
||||
{{ "--.-" }}
|
||||
{%-else %}
|
||||
{{ states('sensor.ecowitt_tempin') | round(1,default=0) }}
|
||||
{%- endif %}
|
||||
"click": "{{ 'false' if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 'true' }}"
|
||||
"opacity": "{{ 60 if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 255 }}"
|
||||
event:
|
||||
"up":
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
temperature: "{{ state_attr('climate.salon','temperature') + state_attr('climate.salon','target_temp_step') | float(default=1)}}"
|
||||
"long":
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
temperature: "{{ state_attr('climate.salon','temperature') - state_attr('climate.salon','target_temp_step') | float(default=1)}}"
|
||||
|
||||
- obj: "p3b25" # label target temp
|
||||
properties:
|
||||
"text": >
|
||||
{% if state_attr('climate.salon','temperature') is not none %}
|
||||
{{ state_attr('climate.salon','temperature') }}
|
||||
{%- endif %}
|
||||
"opacity": "{{ 60 if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 255 }}"
|
||||
|
||||
- obj: "p3b41" # on/off switch
|
||||
properties:
|
||||
"val": "{{ 0 if (is_state('climate.salon', 'off') or is_state('climate.salon', 'unavailable')) else 1 }}"
|
||||
"click": "{{ 'false' if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 'true' }}"
|
||||
"opacity": "{{ 60 if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 255 }}"
|
||||
event:
|
||||
"down":
|
||||
- service_template: >
|
||||
{% if val == 0 -%}
|
||||
climate.turn_on
|
||||
{% else -%}
|
||||
climate.turn_off
|
||||
{% endif -%}
|
||||
entity_id: "climate.salon"
|
||||
|
||||
- obj: "p3b30" # tab dots
|
||||
event:
|
||||
"changed":
|
||||
- service: openhasp.command
|
||||
target:
|
||||
entity_id: openhasp.your_plate
|
||||
data:
|
||||
keyword: p3b26.text
|
||||
parameters: >
|
||||
{% if val == 0 %}
|
||||
{{ "#000000 \u2022# #909090 \u2022# #909090 \u2022#" | e }}
|
||||
{%-elif val == 1 %}
|
||||
{{ "#909090 \u2022# #000000 \u2022# #909090 \u2022#" | e }}
|
||||
{%-elif val == 2 %}
|
||||
{{ "#909090 \u2022# #909090 \u2022# #000000 \u2022#" | e }}
|
||||
{% endif %}
|
||||
|
||||
- obj: "p3b42" # dropdown with fan_modes
|
||||
properties:
|
||||
"options": >
|
||||
{% if state_attr('climate.salon','fan_modes') is not none %}{%for mode in state_attr('climate.salon','fan_modes')%}
|
||||
{%- if mode == 'auto' -%}
|
||||
Automatic{{"\n"|e}}
|
||||
{%- elif mode == 'low' -%}
|
||||
Low{{"\n"|e}}
|
||||
{%- elif mode == 'medium' -%}
|
||||
Medium{{"\n"|e}}
|
||||
{%- elif mode == 'high' -%}
|
||||
High{{"\n"|e}}
|
||||
{%- elif mode == 'turbo' -%}
|
||||
Turbo{{"\n"|e}}
|
||||
{%- endif -%}
|
||||
{%-if not loop.last%}{%-endif%}{%-endfor%}{% endif %}
|
||||
"click": "{{ 'false' if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 'true' }}"
|
||||
"val": >
|
||||
{% if not (is_state('climate.salon','unavailable')) %}{%for mode in state_attr('climate.salon','fan_modes')%}
|
||||
{{loop.index -1 if mode == state_attr('climate.salon','fan_mode') }}
|
||||
{%-endfor%}{% endif %}
|
||||
event:
|
||||
"changed":
|
||||
- service: climate.set_fan_mode
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
fan_mode: >
|
||||
{% if text == "Automatic" -%}
|
||||
auto
|
||||
{% elif text == 'Low' -%}
|
||||
low
|
||||
{% elif text == 'Medium' -%}
|
||||
medium
|
||||
{% elif text == 'High' -%}
|
||||
high
|
||||
{% elif text == 'Turbo' -%}
|
||||
turbo
|
||||
{% endif -%}
|
||||
|
||||
- obj: "p3b43" # dropdown with hvac_modes
|
||||
properties:
|
||||
"options": >
|
||||
{% if state_attr('climate.salon','hvac_modes') is not none %}{%for mode in state_attr('climate.salon','hvac_modes')%}
|
||||
{%- if mode == 'off' -%}
|
||||
Off{{"\n"|e}}
|
||||
{%- elif mode == 'heat' -%}
|
||||
Heating{{"\n"|e}}
|
||||
{%- elif mode == 'cool' -%}
|
||||
Cooling{{"\n"|e}}
|
||||
{%- elif mode == 'heat_cool' -%}
|
||||
Heat/Cool{{"\n"|e}}
|
||||
{%- elif mode == 'dry' -%}
|
||||
Drying{{"\n"|e}}
|
||||
{%- elif mode == 'fan_only' -%}
|
||||
Fan only{{"\n"|e}}
|
||||
{%- else -%}
|
||||
On{{"\n"|e}}
|
||||
{%- endif -%}
|
||||
{%-if not loop.last%}{%-endif%}{%-endfor%}{% endif %}
|
||||
"click": "{{ 'false' if (is_state('climate.salon','unavailable') or is_state('climate.salon','unknown')) else 'true' }}"
|
||||
"val": >
|
||||
{% if not (is_state('climate.salon','unavailable')) %}{%for mode in state_attr('climate.salon','hvac_modes')%}
|
||||
{{loop.index -1 if mode == states('climate.salon') }}
|
||||
{%-endfor%}{% endif %}
|
||||
event:
|
||||
"changed":
|
||||
- service: climate.set_hvac_mode
|
||||
target:
|
||||
entity_id: climate.salon
|
||||
data:
|
||||
hvac_mode: >
|
||||
{% if text == "Off" -%}
|
||||
off
|
||||
{% elif text == 'Heating' -%}
|
||||
heat
|
||||
{% elif text == 'Cooling' -%}
|
||||
cool
|
||||
{% elif text == 'Heat/Cool' -%}
|
||||
heat_cool
|
||||
{% elif text == 'Drying' -%}
|
||||
dry
|
||||
{% elif text == 'Fan only' -%}
|
||||
fan_only
|
||||
{% endif -%}
|
||||
# solar page4
|
||||
- obj: "p4b41" # light-switch toggle button
|
||||
properties:
|
||||
"val": '{{ 1 if states("switch.relay_inverter_1") == "on" else 0 }}'
|
||||
"text": '{{ "\uE6E8" if is_state("switch.relay_inverter_1", "on") else "\uE335" | e }}'
|
||||
event:
|
||||
"up":
|
||||
- service: homeassistant.toggle
|
||||
entity_id: "switch.relay_inverter_1"
|
||||
|
||||
- obj: "p4b43" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.pv_power_3") }}W'
|
||||
- obj: "p4b45" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.tacsolar_power") }}W'
|
||||
- obj: "p4b47" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.power_compteur") }}W'
|
||||
- obj: "p4b49" # temperature label on all pages
|
||||
properties:
|
||||
"text": '{{ states("sensor.battery_state_of_charge_2") }}%'
|
||||
|
||||
# weather section
|
||||
- obj: "p5b14" # Icon
|
||||
properties:
|
||||
"src": "{{ 'L:/w-128-' + states('weather.openweathermap') + '.png' if not is_state('weather.openweathermap','unavailable') }}"
|
||||
|
||||
- obj: "p5b15" # Current date (adjust format to your needs)
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
{%- set day = (states.weather.openweathermap.last_changed).strftime('%w') %}
|
||||
{%- set days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] %}
|
||||
{{- days[ day | int -1 ] }} {{ (states.weather.openweathermap.last_changed).strftime('%m. %d. ') }}
|
||||
{% endif -%}
|
||||
|
||||
- obj: "p5b16" # Current temp (you can use your own outdoor temp sensor if you have one)
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.openweathermap','temperature') |string + '°C' if not is_state('weather.openweathermap','unavailable') }}" # or "{{ states('sensor.your_own_temp_sensor') if not is_state('sensor.your_own_temp_sensor','unavailable') else '--' }}°C"
|
||||
|
||||
- obj: "p5b17" # Current weather condition
|
||||
properties:
|
||||
"text": >
|
||||
{% if is_state('weather.openweathermap','clear-night') -%}
|
||||
Clear night
|
||||
{% elif is_state('weather.openweathermap','cloudy') -%}
|
||||
Cloudy
|
||||
{% elif is_state('weather.openweathermap','fog') -%}
|
||||
Fog
|
||||
{% elif is_state('weather.openweathermap','hail') -%}
|
||||
Hail
|
||||
{% elif is_state('weather.openweathermap','lightning') -%}
|
||||
Lightning
|
||||
{% elif is_state('weather.openweathermap','lightning-rainy') -%}
|
||||
Thunderstorms
|
||||
{% elif is_state('weather.openweathermap','partlycloudy') -%}
|
||||
Partly cloudy
|
||||
{% elif is_state('weather.openweathermap','pouring') -%}
|
||||
Pouring rain
|
||||
{% elif is_state('weather.openweathermap','rainy') -%}
|
||||
Rainy
|
||||
{% elif is_state('weather.openweathermap','snowy') -%}
|
||||
Snowy
|
||||
{% elif is_state('weather.openweathermap','snowy-rainy') -%}
|
||||
Snowy-rainy
|
||||
{% elif is_state('weather.openweathermap','sunny') -%}
|
||||
Sunny
|
||||
{% elif is_state('weather.openweathermap','windy') -%}
|
||||
Windy
|
||||
{% elif is_state('weather.openweathermap','windy-variant') -%}
|
||||
Windy
|
||||
{% elif is_state('weather.openweathermap','exceptional') -%}
|
||||
Exceptional
|
||||
{% elif is_state('weather.openweathermap','unavailable') -%}
|
||||
(not available)
|
||||
{% else -%}
|
||||
{{ states('weather.openweathermap') }}
|
||||
{% endif -%}
|
||||
|
||||
- obj: "p5b10" # tab dots - MAKE SURE YOU UPDATE THIS ONE!!
|
||||
event:
|
||||
"changed":
|
||||
- service: openhasp.command
|
||||
target:
|
||||
entity_id: openhasp.your_plate
|
||||
data:
|
||||
keyword: p5b19.text
|
||||
parameters: >
|
||||
{% if val == 0 %}
|
||||
{{ "#000000 \u2022# #909090 \u2022#" | e }}
|
||||
{%-elif val == 1 %}
|
||||
{{ "#909090 \u2022# #000000 \u2022#" | e }}
|
||||
{% endif %}
|
||||
|
||||
- obj: "p5b21" # Forecast time +1h
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
{%- set update = states('sensor.date') %}
|
||||
{%- set midnight = now().replace(hour=0, minute=0, second=0, microsecond=0).timestamp() %}
|
||||
{%- set event = as_timestamp(strptime(state_attr('weather.openweathermap','forecast')[1]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set delta = ((event - midnight) // 86400) | int %}
|
||||
{%- if delta == 0 %}
|
||||
Today
|
||||
{%- elif delta == 1 %}
|
||||
Tomorrow
|
||||
{%- endif %}
|
||||
{{- event | timestamp_custom(" %-I %p") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b22" # Forecast temp +1h
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.openweathermap','forecast')[1]['temperature'] if not is_state('weather.openweathermap','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b23" # Forecast condition +1h
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.openweathermap','forecast')[1]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b31" # Forecast time +2h (using Dawn/Morn etc instead of Today/Tomorrow)
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
{%- set hour = as_timestamp(strptime(state_attr('weather.openweathermap','forecast')[3]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) | timestamp_custom("%-H") | int %}
|
||||
{%- if 4 <= hour < 6 %}
|
||||
Dawning
|
||||
{%- elif 6 <= hour < 9 %}
|
||||
Morning
|
||||
{%- elif 9 <= hour < 12 %}
|
||||
Forenoon
|
||||
{%- elif 12 <= hour < 18 %}
|
||||
Afternoon
|
||||
{%- elif 18 <= hour < 23 %}
|
||||
Evening
|
||||
{%- elif 23 <= hour or hour < 4 %}
|
||||
Night
|
||||
{%- endif %}
|
||||
{{- " " + hour |string + " o'clock" }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b32" # Forecast temp +2h
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.openweathermap','forecast')[3]['temperature'] if not is_state('weather.openweathermap','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b33" # Forecast condition +2h
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.openweathermap','forecast')[3]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b41" # Forecast time +4h
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
{%- set update = states('sensor.date') %}
|
||||
{%- set midnight = now().replace(hour=0, minute=0, second=0, microsecond=0).timestamp() %}
|
||||
{%- set event = as_timestamp(strptime(state_attr('weather.openweathermap','forecast')[6]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set delta = ((event - midnight) // 86400) | int %}
|
||||
{%- if delta == 0 %}
|
||||
Today
|
||||
{%- elif delta == 1 %}
|
||||
Tomorrow
|
||||
{%- endif %}
|
||||
{{- event | timestamp_custom(" %-I %p") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b42" # Forecast temp +4h
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.openweathermap','forecast')[6]['temperature'] if not is_state('weather.openweathermap','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b43" # Forecast condition +4h
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.openweathermap','forecast')[6]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b51" # Forecast time +8h
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
{%- set update = states('sensor.date') %}
|
||||
{%- set midnight = now().replace(hour=0, minute=0, second=0, microsecond=0).timestamp() %}
|
||||
{%- set event = as_timestamp(strptime(state_attr('weather.openweathermap','forecast')[12]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set delta = ((event - midnight) // 86400) | int %}
|
||||
{%- if delta == 0 %}
|
||||
Today
|
||||
{%- elif delta == 1 %}
|
||||
Tomorrow
|
||||
{%- endif %}
|
||||
{{- event | timestamp_custom(" %-I %p") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b52" # Forecast temp +8h
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.openweathermap','forecast')[12]['temperature'] if not is_state('weather.openweathermap','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b53" # Forecast condition +8h
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.openweathermap','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.openweathermap','forecast')[12]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b61" # Forecast date +1d
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
{%- set now = as_timestamp(strptime(state_attr('weather.bessamorel','forecast')[0]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set day = now | timestamp_custom("%w") %}
|
||||
{%- set days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] %}
|
||||
{{ days[ day | int -1 ] }}{{- now | timestamp_custom(" %d") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b62" # Forecast temp min +1d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[0]['templow'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b63" # Forecast temp max +1d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[0]['temperature'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b64" # Forecast condition +1d
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.bessamorel','forecast')[0]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b71" # Forecast date +2d
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
{%- set now = as_timestamp(strptime(state_attr('weather.bessamorel','forecast')[1]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set day = now | timestamp_custom("%w") %}
|
||||
{%- set days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] %}
|
||||
{{ days[ day | int -1 ] }}{{- now | timestamp_custom(" %d") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b72" # Forecast temp min +2d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[1]['templow'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b73" # Forecast temp max +2d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[1]['temperature'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b74" # Forecast condition +2d
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.bessamorel','forecast')[1]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b81" # Forecast date +3d
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
{%- set now = as_timestamp(strptime(state_attr('weather.bessamorel','forecast')[2]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set day = now | timestamp_custom("%w") %}
|
||||
{%- set days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] %}
|
||||
{{ days[ day | int -1 ] }}{{- now | timestamp_custom(" %d") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b82" # Forecast temp min +3d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[2]['templow'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b83" # Forecast temp max +3d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[2]['temperature'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b84" # Forecast condition +3d
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.bessamorel','forecast')[2]['condition'] }}.png
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b91" # Forecast date +4d
|
||||
properties:
|
||||
"text": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
{%- set now = as_timestamp(strptime(state_attr('weather.bessamorel','forecast')[3]['datetime'], '%Y-%m-%dT%H:%M:%S%z', default='2020-01-00T00:00:00+00:00')) %}
|
||||
{%- set day = now | timestamp_custom("%w") %}
|
||||
{%- set days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] %}
|
||||
{{ days[ day | int -1 ] }}{{- now | timestamp_custom(" %d") }}
|
||||
{%- endif %}
|
||||
|
||||
- obj: "p5b92" # Forecast temp min +4d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[3]['templow'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b93" # Forecast temp max +4d
|
||||
properties:
|
||||
"text": "{{ state_attr('weather.bessamorel','forecast')[3]['temperature'] if not is_state('weather.bessamorel','unavailable') else '-' }}"
|
||||
|
||||
- obj: "p5b94" # Forecast condition +4d
|
||||
properties:
|
||||
"src": >
|
||||
{%- if not is_state('weather.bessamorel','unavailable') %}
|
||||
L:/w-32-{{ state_attr('weather.bessamorel','forecast')[3]['condition'] }}.png
|
||||
{%- endif %}
|
||||
42
config/01capteur/recorder/recorder.yaml.old
Normal file
42
config/01capteur/recorder/recorder.yaml.old
Normal file
@@ -0,0 +1,42 @@
|
||||
db_url: mysql://homeassistant:homeassistant@core-mariadb/homeassistant?charset=utf8mb4
|
||||
purge_keep_days: 30
|
||||
auto_purge: true
|
||||
include:
|
||||
domains:
|
||||
- climate
|
||||
- binary_sensor
|
||||
- input_boolean
|
||||
- input_datetime
|
||||
- input_number
|
||||
- input_select
|
||||
- sensor
|
||||
- switch
|
||||
- person
|
||||
- device_tracker
|
||||
- light
|
||||
exclude:
|
||||
domains:
|
||||
- camera
|
||||
- zone
|
||||
- automation
|
||||
- sun
|
||||
- weather
|
||||
- cover
|
||||
- group
|
||||
- script
|
||||
- pool_pump
|
||||
entity_globs:
|
||||
- sensor.clock*
|
||||
- sensor.date*
|
||||
- sensor.glances*
|
||||
- sensor.load_*m
|
||||
- sensor.time*
|
||||
- sensor.uptime*
|
||||
- device_tracker.nmap_tracker*
|
||||
entities:
|
||||
- camera.front_door
|
||||
- sensor.memory_free
|
||||
- sensor.memory_use
|
||||
- sensor.memory_use_percent
|
||||
- sensor.processor_use
|
||||
- weather.openweathermap
|
||||
5
config/01capteur/sensor/.vscode/settings.json
vendored
Normal file
5
config/01capteur/sensor/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.yaml": "home-assistant"
|
||||
}
|
||||
}
|
||||
43
config/01capteur/sensor/battery.yaml
Normal file
43
config/01capteur/sensor/battery.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
# ## pc portable lenovo battery
|
||||
# - platform: mqtt
|
||||
# unique_id: portable_lenovo_battery
|
||||
# name: portable_lenovo_battery
|
||||
# device_class: battery
|
||||
# unit_of_measurement: "%"
|
||||
# # payload_on: low
|
||||
# # payload_off: normal
|
||||
# qos: 1
|
||||
# #availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
# #payload_available: online
|
||||
# #payload_not_available: offline
|
||||
# state_topic: computer/lenovo
|
||||
# value_template: "{{ value_json.percent }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# unique_id: portable_elitebook_corei5
|
||||
# name: portable_elitebook_corei5
|
||||
# device_class: battery
|
||||
# unit_of_measurement: "%"
|
||||
# # payload_on: low
|
||||
# # payload_off: normal
|
||||
# qos: 1
|
||||
# #availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
# #payload_available: online
|
||||
# #payload_not_available: offline
|
||||
# state_topic: computer/corei5
|
||||
# value_template: "{{ value_json.percent }}"
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# unique_id: portable_elitebook_centrino
|
||||
# name: portable_elitebook_centrino
|
||||
# device_class: battery
|
||||
# unit_of_measurement: "%"
|
||||
# # payload_on: low
|
||||
# # payload_off: normal
|
||||
# qos: 1
|
||||
# #availability_topic: home/downstairs/living-room/front-windows/availability
|
||||
# #payload_available: online
|
||||
# #payload_not_available: offline
|
||||
# state_topic: computer/centrino
|
||||
# value_template: "{{ value_json.percent }}"
|
||||
27
config/01capteur/sensor/beacons.yaml
Normal file
27
config/01capteur/sensor/beacons.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
- platform: mqtt_room
|
||||
device_id: "iphone X"
|
||||
name: "iphone X espresence"
|
||||
state_topic: "espresense/devices/iphone_x"
|
||||
timeout: 10
|
||||
away_timeout: 60
|
||||
|
||||
- platform: mqtt_room
|
||||
device_id: "xiaomi"
|
||||
name: "xiaomi espresence"
|
||||
state_topic: "espresense/devices/xiaomi"
|
||||
timeout: 10
|
||||
away_timeout: 60
|
||||
|
||||
- platform: mqtt_room
|
||||
device_id: "ipad"
|
||||
name: "ipad espresence"
|
||||
state_topic: "espresense/devices/ipad"
|
||||
timeout: 10
|
||||
away_timeout: 60
|
||||
|
||||
- platform: mqtt_room
|
||||
device_id: "known:ed317301e564"
|
||||
name: "clef espresence"
|
||||
state_topic: "espresense/devices/known:ed317301e564"
|
||||
timeout: 10
|
||||
away_timeout: 60
|
||||
198
config/01capteur/sensor/chaudiere.yaml.old
Normal file
198
config/01capteur/sensor/chaudiere.yaml.old
Normal file
@@ -0,0 +1,198 @@
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## actual value - input register
|
||||
# register_type: input
|
||||
## FC=04 de 30001-30272 enlever 1 a register
|
||||
######################################################################
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: T° chaudiere
|
||||
hub: pimodbus
|
||||
register: 0
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: T° fumée
|
||||
hub: pimodbus
|
||||
register: 1
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: T° board
|
||||
hub: pimodbus
|
||||
register: 2
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: T°exterieur nord
|
||||
device_class: temperature
|
||||
hub: pimodbus
|
||||
register: 4
|
||||
register_type: input
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: Ventilation
|
||||
hub: pimodbus
|
||||
register: 7
|
||||
register_type: input
|
||||
unit_of_measurement: U/min
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: Heure de chauffage
|
||||
hub: pimodbus
|
||||
register: 221
|
||||
register_type: input
|
||||
unit_of_measurement: h
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: Heure de service
|
||||
hub: pimodbus
|
||||
register: 98
|
||||
register_type: input
|
||||
unit_of_measurement: h
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: T° départ
|
||||
hub: pimodbus
|
||||
register: 21
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: Charge du tampon
|
||||
hub: pimodbus
|
||||
register: 225
|
||||
register_type: input
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: tampon haut
|
||||
hub: pimodbus
|
||||
register: 118
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
registers:
|
||||
- name: tampon bas
|
||||
hub: pimodbus
|
||||
register: 120
|
||||
register_type: input
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.5
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: Consigne T° fumée
|
||||
device_class: temperature
|
||||
hub: pimodbus
|
||||
register: 19
|
||||
register_type: input
|
||||
unit_of_measurement: °C
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
offset: 0
|
||||
precision: 0
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: Etat chaudiere
|
||||
hub: pimodbus
|
||||
register: 4001
|
||||
register_type: input
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 1
|
||||
- platform: modbus
|
||||
scan_interval: 60
|
||||
registers:
|
||||
- name: O2_residuel
|
||||
hub: pimodbus
|
||||
register: 3
|
||||
register_type: input
|
||||
slave: 2
|
||||
count: 1
|
||||
scale: 0.1
|
||||
offset: 0
|
||||
precision: 0
|
||||
######################################################################
|
||||
## chaudiere
|
||||
## parameter - holding registers
|
||||
# register_type: holding
|
||||
## FC=03 de 40001-41094 enlever 1 a register
|
||||
######################################################################
|
||||
101
config/01capteur/sensor/chaudiere_mqtt.yaml
Normal file
101
config/01capteur/sensor/chaudiere_mqtt.yaml
Normal file
@@ -0,0 +1,101 @@
|
||||
# ######################################################################
|
||||
# ## chaudiere
|
||||
# ## actual value - input register
|
||||
# # register_type: input
|
||||
# ## FC=04 de 30001-30272 enlever 1 a register
|
||||
# ######################################################################
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/t_chaud"
|
||||
# unit_of_measurement: "°C"
|
||||
# device_class: temperature
|
||||
# name: "T° chaudiere"
|
||||
# unique_id: temp_chaud_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/t_fumee"
|
||||
# name: "T° fumée"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: temp_fumee_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/t_board"
|
||||
# name: "T° board"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: temp_board_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/t_ext"
|
||||
# name: "T°exterieur nord"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: temp_ext_N_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/vit_venti"
|
||||
# name: "Ventilation"
|
||||
# unit_of_measurement: "U/min"
|
||||
# unique_id: venti_chaud_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/h_chauffage"
|
||||
# name: "Heure de chauffage"
|
||||
# unit_of_measurement: "h"
|
||||
# unique_id: heure_chauff_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/h_service"
|
||||
# name: "Heure de service"
|
||||
# unit_of_measurement: "h"
|
||||
# unique_id: heure_serv_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/t_dep_chauff"
|
||||
# name: "T° départ"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: temp_dep_chauff_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/charge_tampon"
|
||||
# name: "Charge du tampon"
|
||||
# unique_id: charge_tampon_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/tampon_haut"
|
||||
# name: "tampon haut"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: tampon_haut_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/tampon_bas"
|
||||
# name: "tampon bas"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: tampon_bas_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/cons_t_fumee"
|
||||
# name: "Consigne T° fumée"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# unique_id: temp_cons_fumee_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/etat_chaudiere"
|
||||
# name: "Etat chaudiere"
|
||||
# unique_id: etat_chaud_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "chaudiere/O2_res"
|
||||
# name: "O2_residuel"
|
||||
# unique_id: O2_resi_01
|
||||
# ######################################################################
|
||||
# ## chaudiere
|
||||
# ## parameter - holding registers
|
||||
# # register_type: holding
|
||||
# ## FC=03 de 40001-41094 enlever 1 a register
|
||||
# ######################################################################
|
||||
|
||||
4
config/01capteur/sensor/domoticz.yaml.test
Normal file
4
config/01capteur/sensor/domoticz.yaml.test
Normal file
@@ -0,0 +1,4 @@
|
||||
- platform: mqtt
|
||||
state_topic: 'home/sensor/1456/temp'
|
||||
name: 'chaudiere'
|
||||
unit_of_measurement: '°C'
|
||||
15
config/01capteur/sensor/energy.yaml.test
Normal file
15
config/01capteur/sensor/energy.yaml.test
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
- platform: integration
|
||||
source: sensor.puissance_compteur
|
||||
name: total_energy_elec
|
||||
unit_prefix: k
|
||||
unit: kWh
|
||||
unit_time: h
|
||||
round: 2
|
||||
- platform: integration
|
||||
source: sensor.solar_pv_power
|
||||
name: total_energy_solar
|
||||
unit_prefix: k
|
||||
unit: kWh
|
||||
unit_time: h
|
||||
round: 2
|
||||
0
config/01capteur/sensor/ipx800.yaml
Normal file
0
config/01capteur/sensor/ipx800.yaml
Normal file
0
config/01capteur/sensor/modbusTAC2100.yaml
Normal file
0
config/01capteur/sensor/modbusTAC2100.yaml
Normal file
162
config/01capteur/sensor/sensors.yaml
Normal file
162
config/01capteur/sensor/sensors.yaml
Normal file
@@ -0,0 +1,162 @@
|
||||
#- platform: uptime
|
||||
#- platform: moon
|
||||
#- platform: season
|
||||
- platform: time_date
|
||||
display_options:
|
||||
- "time"
|
||||
- "date"
|
||||
|
||||
# #----------------------------------------
|
||||
# #
|
||||
# # lux
|
||||
# #
|
||||
# #----------------------------------------
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/lux"
|
||||
# name: "Luminosité"
|
||||
# device_class: illuminance
|
||||
# unit_of_measurement: "lx"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: luminosite_salon_01
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "arduino/garage/intensite"
|
||||
# name: "Intensité t_divisionnaire"
|
||||
# unit_of_measurement: "A"
|
||||
# device_class: current
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: courant_t_div_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "arduino/garage/puissance"
|
||||
# name: "Puissance t_divisionnaire"
|
||||
# device_class: power
|
||||
# unit_of_measurement: "W"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: power_t_div_01
|
||||
|
||||
# #----------------------------------------
|
||||
# #
|
||||
# # chauffage reglage PID
|
||||
# #
|
||||
# #----------------------------------------
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/payload"
|
||||
# name: "payload"
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/pv"
|
||||
# name: "pv"
|
||||
# value_template: "{{ value | round(3) }}"
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/setpoint"
|
||||
# name: "setpoint"
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/proportional"
|
||||
# name: "P"
|
||||
# value_template: "{{ value | round(3) }}"
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/integral"
|
||||
# name: "I"
|
||||
# value_template: "{{ value | round(3) }}"
|
||||
# - platform: mqtt
|
||||
# state_topic: "sensor/chauff/pid/derivative"
|
||||
# name: "D"
|
||||
# value_template: "{{ value | round(3) }}"
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# stat divers: lumiere , detection
|
||||
#
|
||||
#----------------------------------------
|
||||
# - platform: history_stats
|
||||
# name: Lampes couloir
|
||||
# entity_id: light.couloir
|
||||
# state: "on"
|
||||
# type: time
|
||||
# start: "{{ now().replace(hour=0, minute=0, second=0) }}"
|
||||
# end: "{{ now() }}"
|
||||
|
||||
# - platform: history_stats
|
||||
# name: Lampes escalier
|
||||
# entity_id: light.escalier
|
||||
# state: "on"
|
||||
# type: time
|
||||
# start: "{{ now().replace(hour=0, minute=0, second=0) }}"
|
||||
# end: "{{ now() }}"
|
||||
|
||||
# - platform: history_stats
|
||||
# name: Lampes cuisine
|
||||
# entity_id: light.plafond_cuisine
|
||||
# state: "on"
|
||||
# type: time
|
||||
# start: "{{ now().replace(hour=0, minute=0, second=0) }}"
|
||||
# end: "{{ now() }}"
|
||||
|
||||
# - platform: history_stats
|
||||
# name: Ouverture portes garages
|
||||
# entity_id: binary_sensor.porte_garage
|
||||
# state: "on"
|
||||
# type: count
|
||||
# start: "{{ now().replace(hour=0, minute=0, second=0) }}"
|
||||
# end: "{{ now() }}"
|
||||
|
||||
# - platform: history_stats
|
||||
# name: Ouverture portes escalier
|
||||
# entity_id: binary_sensor.porte_escalier
|
||||
# state: "on"
|
||||
# type: count
|
||||
# start: "{{ now().replace(hour=0, minute=0, second=0) }}"
|
||||
# end: "{{ now() }}"
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# calcul humidité bien-etre
|
||||
#sensor/tension/compteur
|
||||
#----------------------------------------
|
||||
- platform: mold_indicator
|
||||
indoor_temp_sensor: sensor.ecowitt_tempin
|
||||
indoor_humidity_sensor: sensor.ecowitt_humidityin
|
||||
outdoor_temp_sensor: sensor.ecowitt_temp
|
||||
calibration_factor: 2.0
|
||||
|
||||
#----------------------------------------
|
||||
#
|
||||
# adresse IP internet
|
||||
#
|
||||
#----------------------------------------
|
||||
|
||||
#- platform: dnsip
|
||||
# name: ip_WAN
|
||||
|
||||
#- platform: seventeentrack
|
||||
# username: gil.soulier@gmail.com
|
||||
# password: Miss*17track
|
||||
# show_archived: false
|
||||
# show_delivered: true
|
||||
- platform: sql
|
||||
db_url: mysql://homeassistant:homeassistant@core-mariadb/homeassistant?charset=utf8
|
||||
scan_interval: 60
|
||||
queries:
|
||||
- name: "MariaDB DataBase size"
|
||||
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
|
||||
column: "value"
|
||||
unit_of_measurement: MB
|
||||
|
||||
- platform: sql
|
||||
db_url: mysql://homeassistant:homeassistant@core-mariadb/homeassistant?charset=utf8mb4
|
||||
scan_interval: 3600
|
||||
queries:
|
||||
- name: db_size
|
||||
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1048576, 2) "value" FROM information_schema.tables WHERE #table_schema="homeassistant" GROUP BY table_schema;'
|
||||
column: "value"
|
||||
unit_of_measurement: MB
|
||||
device_class: data_size
|
||||
# - platform: mqtt
|
||||
# state_topic: "domotic/ISAadapter/Package id 0"
|
||||
# name: "Temp PC Domotic"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: tempe_pc_domotic
|
||||
|
||||
274
config/01capteur/sensor/solar mqtt.yaml
Normal file
274
config/01capteur/sensor/solar mqtt.yaml
Normal file
@@ -0,0 +1,274 @@
|
||||
# # modbus sensors for EPEver
|
||||
# - platform: mqtt
|
||||
# ## reg 3100
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_voltage"
|
||||
# unique_id: "array_voltage"
|
||||
# name: "solar_PV_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(12) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3101
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_current"
|
||||
# unique_id: "array_current"
|
||||
# name: "solar_PV_Current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3102 3103
|
||||
# state_topic: "tracer/sensor/tracer_1_pv_array_power"
|
||||
# unique_id: "array_power"
|
||||
# name: "solar_PV_Power"
|
||||
# icon: mdi:solar-power
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3104
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_voltage"
|
||||
# unique_id: "battery_voltage"
|
||||
# name: "solar_Battery_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# - platform: mqtt
|
||||
# ##reg 3105
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_charging_current"
|
||||
# name: "Battery_charging_Current"
|
||||
# unique_id: "battery_charging_current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# #reg 3302
|
||||
# state_topic: "tracer/sensor/tracer_1_max_battery_voltage_today"
|
||||
# name: "solar_Battery_Max_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# #reg 3303
|
||||
# state_topic: "tracer/sensor/tracer_1_min_battery_voltage_today"
|
||||
# name: "solar_Battery_Min_Voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 331B-331C
|
||||
# state_topic: "tracer/sensor/tracer_1_net_battery_current"
|
||||
# name: "net_Battery_Current"
|
||||
# unique_id: "net_battery_current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "tracer/registers/Charging equipment output power/value"
|
||||
# unique_id: "battery_power"
|
||||
# name: "solar_Battery_Power"
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# #reg 3110
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_temperature"
|
||||
# name: "solar_Battery_Temperature"
|
||||
# unique_id: "battery_temperature"
|
||||
# icon: mdi:thermometer
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '°C'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# #reg 311A
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_soc"
|
||||
# name: "solar_Battery_SOC"
|
||||
# unique_id: "battery_SOC"
|
||||
# unit_of_measurement: '%'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# #reg 3111
|
||||
# state_topic: "tracer/sensor/tracer_1_charger_temperature"
|
||||
# unique_id: "device_temperature"
|
||||
# name: "solar_device_Temperature"
|
||||
# device_class: temperature
|
||||
# state_class: measurement
|
||||
# unit_of_measurement: '°C'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3201
|
||||
# state_topic: "tracer/sensor/tracer_1_equipment_status"
|
||||
# name: "solar_PV_Status"
|
||||
# unique_id: "solar_PV_status"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3200
|
||||
# state_topic: "tracer/sensor/tracer_1_battery_status"
|
||||
# name: "solar_battery_Status"
|
||||
# unique_id: "battery_status"
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 330C-330D
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_today"
|
||||
# name: "generated_Today_Energy"
|
||||
# unique_id: "generated_energy_today"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_total_generated_energy"
|
||||
# unique_id: "generated_energy_total"
|
||||
# name: "generated_total_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 330E-330F
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_this_month"
|
||||
# name: "generated_month_Energy"
|
||||
# unique_id: "generated_energy_month"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_generated_energy_this_year"
|
||||
# unique_id: "generated_energy_year"
|
||||
# name: "generated_year_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 310E-310F
|
||||
# state_topic: "tracer/sensor/tracer_1_load_power"
|
||||
# unique_id: "load power"
|
||||
# name: "DC_Load_Power"
|
||||
# device_class: power
|
||||
# unit_of_measurement: 'W'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 310C
|
||||
# state_topic: "tracer/sensor/tracer_1_load_voltage"
|
||||
# name: "DC_Load_Voltage"
|
||||
# unique_id: "load voltage"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: 'V'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 310D
|
||||
# state_topic: "tracer/sensor/tracer_1_load_current"
|
||||
# name: "DC_Load_Courant"
|
||||
# unique_id: "load current"
|
||||
# device_class: current
|
||||
# unit_of_measurement: 'A'
|
||||
# state_class: measurement
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 200C
|
||||
# state_topic: "tracer/sensor/tracer_1_day/night"
|
||||
# name: "solar_Day_Night"
|
||||
# #device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 330C-330D
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_today"
|
||||
# name: "consumed_Today_Energy"
|
||||
# unique_id: "energy_today"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_total_consumed_energy"
|
||||
# unique_id: "consumed_energy_total"
|
||||
# name: "consumed_Total_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_this_month"
|
||||
# unique_id: "consumed_energy_month"
|
||||
# name: "consumed_Month_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ##reg 330A-330B
|
||||
# state_topic: "tracer/sensor/tracer_1_consumed_energy_this_year"
|
||||
# unique_id: "consumed_energy_year"
|
||||
# name: "consumed_Year_Energy"
|
||||
# device_class: energy
|
||||
# state_class: total_increasing
|
||||
# unit_of_measurement: 'kWh'
|
||||
# value_template: "{{ value | round(2) }}"
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3201
|
||||
# state_topic: "tracer/sensor/tracer_1_charging_mode"
|
||||
# name: "charging mode"
|
||||
# unique_id: "charging mode"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
|
||||
|
||||
# - platform: mqtt
|
||||
# ## reg 3201
|
||||
# state_topic: "arduinomegatest/servo/status"
|
||||
# name: "servo_pos"
|
||||
# unique_id: "servo_pos1"
|
||||
# # device_class: energy
|
||||
# #unit_of_measurement: 'kW'
|
||||
# # value_template: "{{ value }}"
|
||||
63
config/01capteur/sensor/solar-ecu-r.yaml
Normal file
63
config/01capteur/sensor/solar-ecu-r.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
# ecu-r apsystem
|
||||
#- platform: apsystems
|
||||
# authId: 2c9f95c781d7527d0181e27daf25252a
|
||||
# systemId: 2c9f95c781d7527d0181dedde94c1f7c
|
||||
# ecuId: 216200068509
|
||||
# sunset: off
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/current"
|
||||
# name: "courant ecuR"
|
||||
# device_class: current
|
||||
# unit_of_measurement: "A"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_courant
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/volt"
|
||||
# name: "tension ecuR"
|
||||
# device_class: voltage
|
||||
# unit_of_measurement: "V"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_tension
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/power"
|
||||
# name: "puissance ecuR"
|
||||
# device_class: power
|
||||
# unit_of_measurement: "W"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_puissance
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/frequency"
|
||||
# name: "frequence ecuR"
|
||||
# device_class: frequency
|
||||
# unit_of_measurement: "Hz"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_frequence
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/cos_phi"
|
||||
# name: "cos Phi ecuR"
|
||||
# device_class: power_factor
|
||||
# unit_of_measurement: "%"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_cos_phi
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/temperature"
|
||||
# name: "temperature ecuR"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_temperature
|
||||
# - platform: mqtt
|
||||
# state_topic: "stat/ecu_r/energy_today"
|
||||
# name: "energy_today ecuR"
|
||||
# device_class: energy
|
||||
# unit_of_measurement: "Wh"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: ecuR_energy_today
|
||||
# state_class: total_increasing
|
||||
|
||||
#- platform: integration
|
||||
# source: sensor.puissance_compteur
|
||||
# name: total_energy_elec
|
||||
# unit_time: h
|
||||
# round: 2
|
||||
278
config/01capteur/sensor/solar-ecu-r.yaml.bak
Normal file
278
config/01capteur/sensor/solar-ecu-r.yaml.bak
Normal file
@@ -0,0 +1,278 @@
|
||||
# modbus sensors for EPEver
|
||||
- platform: modbus
|
||||
scan_interval: 30
|
||||
registers:
|
||||
- name: EPEver_Battery_Voltage #0x00331A
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 01
|
||||
register: 13082
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: Epever_Battery Current #0x00331B & 1C
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 1
|
||||
register: 13083
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Epever_Battery Temperature #0x003110
|
||||
hub: hub1
|
||||
unit_of_measurement: °C
|
||||
slave: 1
|
||||
register: 12560
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Battery_SOC
|
||||
hub: hub1
|
||||
unit_of_measurement: '%'
|
||||
slave: 01
|
||||
register: 12570
|
||||
register_type: input
|
||||
- name: Epever_Battery Status #0x003200
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12800
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
#######################################################################
|
||||
#D15: 1-Wrong identification for rated voltage
|
||||
#D8: Battery inner resistance, abnormal 1, normal 0
|
||||
#D7-D4: 00H Normal, 01H Over, Temp.(Higher than the warning settings) 02H Low Temp.(Lower than the warning settings),
|
||||
#D3-D0: 00H Normal ,01H Over Voltage. , 02H Under Voltage, 03H Over discharge, 04H Fault
|
||||
#Status analysis
|
||||
#Array status:address 3201 bits D15-D10
|
||||
#Charging status:address 3201 bits D3-D2
|
||||
#Battery status: address 3200 bits D7-D0
|
||||
#Load status: address 3201 bits D9-D7,
|
||||
#Device status: address 3200 bit D15 address 3202 bits D13-D8,D6-D4 address 3201 bits D6 address 2000
|
||||
############################################################################################
|
||||
- name: Epever_Device Temperature #0x003111
|
||||
hub: hub1
|
||||
unit_of_measurement: °C
|
||||
slave: 1
|
||||
register: 12561
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
|
||||
- name: Solar Charging Equipment Status #0x003201
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12801
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
#######################################################################
|
||||
#D15-D14: Input voltage status. 00H normal, 01H No input power connected, 02H Higher input voltage , 03H Input voltage error.
|
||||
#D13: Charging MOSFET is short circuit.
|
||||
#D12: Charging or Anti-reverse MOSFET is open circuit.
|
||||
#D11: Anti-reverse MOSFET is short circuit.
|
||||
#D10: Input is over current.
|
||||
#D9: The load is over current.
|
||||
#D8: The load is short circuit.
|
||||
#D7: Load MOSFET is short circuit.
|
||||
#D6:Disequilibrium in three circuits.A17
|
||||
#D4: PV input is short circuit.
|
||||
#D3-D2: Charging status. 00H No charging,01H Float,02H Boost, 03H Equalization.
|
||||
#D1: 0 Normal, 1 Fault.
|
||||
#D0: 1 Running, 0 Standby.
|
||||
#Status analysis
|
||||
#Array status:address 3201 bits D15-D10
|
||||
#Charging status:address 3201 bits D3-D2
|
||||
#Battery status: address 3200 bits D7-D0
|
||||
#Load status: address 3201 bits D9-D7,
|
||||
#Device status: address 3200 bit D15 address 3202 bits D13-D8,D6-D4 address 3201 bits D6 address 2000
|
||||
############################################################################################
|
||||
- name: Solar Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
- name: EPEver_Load_Current # 310D
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 01
|
||||
register: 12557
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Load_voltage #310C
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 12556
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
- name: EPEver_Load_Power #0x00310E and 0x00310F
|
||||
hub: hub1
|
||||
unit_of_measurement: W
|
||||
slave: 1
|
||||
register: 12558
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: EPEver_Load_Status #0x003202
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12802
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
|
||||
|
||||
- name: EPEver_Solar_voltage #3100
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 12544
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
- name: EPEver_Solar_Current # 3101
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 01
|
||||
register: 12545
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Solar_Power #0x003102 and 0x003103
|
||||
hub: hub1
|
||||
unit_of_measurement: W
|
||||
slave: 1
|
||||
register: 12546
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
# modbus sensors for EPEver
|
||||
- platform: modbus
|
||||
scan_interval: 600
|
||||
registers:
|
||||
|
||||
- name: Epever_Maximum Battery Voltage Today #0x003302
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 13058
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: Epever_Minimum Battery Voltage Today #0x003303
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 13059
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
|
||||
- name: Epever Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Epever Consumed Energy This Month #0x003306 and 07
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13062
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Epever Consumed Energy This Year #0x003308 & 09
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13064
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Solar Total Consumed Energy #0x00330A & 0B
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13066
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Solar Generated Energy This Month #0x00330E & 0F
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13070
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Solar Generated Energy This Year #0x003310 & 11
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13072
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Solar Total Generated Energy #0x003312 & 13
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13074
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
- name: Solar Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
|
||||
278
config/01capteur/sensor/solar.yaml.old
Normal file
278
config/01capteur/sensor/solar.yaml.old
Normal file
@@ -0,0 +1,278 @@
|
||||
# modbus sensors for EPEver
|
||||
- platform: modbus
|
||||
scan_interval: 30
|
||||
registers:
|
||||
- name: EPEver_Battery_Voltage #0x00331A
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 01
|
||||
register: 13082
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: Epever_Battery Current #0x00331B & 1C
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 1
|
||||
register: 13083
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Epever_Battery Temperature #0x003110
|
||||
hub: hub1
|
||||
unit_of_measurement: °C
|
||||
slave: 1
|
||||
register: 12560
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Battery_SOC
|
||||
hub: hub1
|
||||
unit_of_measurement: '%'
|
||||
slave: 01
|
||||
register: 12570
|
||||
register_type: input
|
||||
- name: Epever_Battery Status #0x003200
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12800
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
#######################################################################
|
||||
#D15: 1-Wrong identification for rated voltage
|
||||
#D8: Battery inner resistance, abnormal 1, normal 0
|
||||
#D7-D4: 00H Normal, 01H Over, Temp.(Higher than the warning settings) 02H Low Temp.(Lower than the warning settings),
|
||||
#D3-D0: 00H Normal ,01H Over Voltage. , 02H Under Voltage, 03H Over discharge, 04H Fault
|
||||
#Status analysis
|
||||
#Array status:address 3201 bits D15-D10
|
||||
#Charging status:address 3201 bits D3-D2
|
||||
#Battery status: address 3200 bits D7-D0
|
||||
#Load status: address 3201 bits D9-D7,
|
||||
#Device status: address 3200 bit D15 address 3202 bits D13-D8,D6-D4 address 3201 bits D6 address 2000
|
||||
############################################################################################
|
||||
- name: Epever_Device Temperature #0x003111
|
||||
hub: hub1
|
||||
unit_of_measurement: °C
|
||||
slave: 1
|
||||
register: 12561
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
|
||||
- name: Solar Charging Equipment Status #0x003201
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12801
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
#######################################################################
|
||||
#D15-D14: Input voltage status. 00H normal, 01H No input power connected, 02H Higher input voltage , 03H Input voltage error.
|
||||
#D13: Charging MOSFET is short circuit.
|
||||
#D12: Charging or Anti-reverse MOSFET is open circuit.
|
||||
#D11: Anti-reverse MOSFET is short circuit.
|
||||
#D10: Input is over current.
|
||||
#D9: The load is over current.
|
||||
#D8: The load is short circuit.
|
||||
#D7: Load MOSFET is short circuit.
|
||||
#D6:Disequilibrium in three circuits.A17
|
||||
#D4: PV input is short circuit.
|
||||
#D3-D2: Charging status. 00H No charging,01H Float,02H Boost, 03H Equalization.
|
||||
#D1: 0 Normal, 1 Fault.
|
||||
#D0: 1 Running, 0 Standby.
|
||||
#Status analysis
|
||||
#Array status:address 3201 bits D15-D10
|
||||
#Charging status:address 3201 bits D3-D2
|
||||
#Battery status: address 3200 bits D7-D0
|
||||
#Load status: address 3201 bits D9-D7,
|
||||
#Device status: address 3200 bit D15 address 3202 bits D13-D8,D6-D4 address 3201 bits D6 address 2000
|
||||
############################################################################################
|
||||
- name: Solar Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
- name: EPEver_Load_Current # 310D
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 01
|
||||
register: 12557
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Load_voltage #310C
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 12556
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
- name: EPEver_Load_Power #0x00310E and 0x00310F
|
||||
hub: hub1
|
||||
unit_of_measurement: W
|
||||
slave: 1
|
||||
register: 12558
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: EPEver_Load_Status #0x003202
|
||||
hub: hub1
|
||||
slave: 1
|
||||
register: 12802
|
||||
register_type: input
|
||||
scale: 1
|
||||
precision: 0
|
||||
|
||||
|
||||
- name: EPEver_Solar_voltage #3100
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 12544
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
- name: EPEver_Solar_Current # 3101
|
||||
hub: hub1
|
||||
unit_of_measurement: A
|
||||
slave: 01
|
||||
register: 12545
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: EPEver_Solar_Power #0x003102 and 0x003103
|
||||
hub: hub1
|
||||
unit_of_measurement: W
|
||||
slave: 1
|
||||
register: 12546
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
# modbus sensors for EPEver
|
||||
- platform: modbus
|
||||
scan_interval: 600
|
||||
registers:
|
||||
|
||||
- name: Epever_Maximum Battery Voltage Today #0x003302
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 13058
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
- name: Epever_Minimum Battery Voltage Today #0x003303
|
||||
hub: hub1
|
||||
unit_of_measurement: V
|
||||
slave: 1
|
||||
register: 13059
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
|
||||
- name: Epever Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Epever Consumed Energy This Month #0x003306 and 07
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13062
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Epever Consumed Energy This Year #0x003308 & 09
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13064
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Solar Total Consumed Energy #0x00330A & 0B
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13066
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
- name: Solar Generated Energy This Month #0x00330E & 0F
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13070
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Solar Generated Energy This Year #0x003310 & 11
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13072
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
- name: Solar Total Generated Energy #0x003312 & 13
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13074
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
- name: Solar Consumed Energy Today #0x003304 and 0x003305
|
||||
hub: hub1
|
||||
unit_of_measurement: KWh
|
||||
slave: 1
|
||||
register: 13060
|
||||
register_type: input
|
||||
scale: 0.01
|
||||
precision: 2
|
||||
count: 2
|
||||
reverse_order: true
|
||||
|
||||
|
||||
|
||||
36
config/01capteur/sensor/stat.yaml
Normal file
36
config/01capteur/sensor/stat.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
- platform: average
|
||||
name: "moy-current-cpt"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.tac2100_compteur_courant
|
||||
- platform: average
|
||||
name: "moy-couranta-cpt2"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.pj1203_zb_compteur_current_a
|
||||
- platform: average
|
||||
name: "moy-courantb-cpt2"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.pj1203_zb_compteur_current_b
|
||||
- platform: average
|
||||
name: "moy-power-cpt"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.tac2100_compteur_puissance_active
|
||||
- platform: average
|
||||
name: "moy-powera-cpt2"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.pj1203_zb_compteur_power_a
|
||||
- platform: average
|
||||
name: "moy-powerb-cpt2"
|
||||
duration:
|
||||
hours: 1
|
||||
entities:
|
||||
- sensor.pj1203_zb_compteur_power_b
|
||||
10
config/01capteur/sensor/systemmonitor.yaml
Normal file
10
config/01capteur/sensor/systemmonitor.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
- platform: systemmonitor
|
||||
resources:
|
||||
- type: processor_use
|
||||
# - type: processor_temperature
|
||||
- type: memory_free
|
||||
- type: disk_use_percent
|
||||
- type: disk_use
|
||||
- type: disk_free
|
||||
- type: load_5m
|
||||
|
||||
78
config/01capteur/sensor/temperature.yaml
Normal file
78
config/01capteur/sensor/temperature.yaml
Normal file
@@ -0,0 +1,78 @@
|
||||
# ---
|
||||
# #----------------------------------------
|
||||
# #
|
||||
# # temperature
|
||||
# #
|
||||
# #----------------------------------------
|
||||
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/bureau"
|
||||
# name: "T Bureau"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_bureau_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/cave"
|
||||
# name: "T Cave"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_cave_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/garage"
|
||||
# name: "T Garage"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_garage_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/chambre1"
|
||||
# name: "T Chambre1"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_chambre_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/chambre2"
|
||||
# name: "T Chambre2"
|
||||
# unit_of_measurement: "°C"
|
||||
# device_class: temperature
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_chambre_02
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/comble"
|
||||
# name: "T Comble"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_comble_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "hum/sdb"
|
||||
# name: "H% salle de bain"
|
||||
# device_class: humidity
|
||||
# unit_of_measurement: "%"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: hum_sdb_01
|
||||
# - platform: mqtt
|
||||
# state_topic: "temp/sdb"
|
||||
# name: "T salle de bain"
|
||||
# device_class: temperature
|
||||
# unit_of_measurement: "°C"
|
||||
# value_template: "{{ value | round(1) }}"
|
||||
# unique_id: temp_sdb_01
|
||||
#----------------------------------------
|
||||
#
|
||||
# temperature
|
||||
#
|
||||
#----------------------------------------
|
||||
# - platform: min_max
|
||||
# entity_ids:
|
||||
# - sensor.temp
|
||||
# name: "min_exterieur"
|
||||
# type: min
|
||||
# - platform: min_max
|
||||
# entity_ids:
|
||||
# - sensor.temp
|
||||
# name: "max_exterieur"
|
||||
# type: max
|
||||
0
config/01capteur/sensor/template_sensor.yaml
Normal file
0
config/01capteur/sensor/template_sensor.yaml
Normal file
12
config/01capteur/sensor/unraid.yaml.old
Normal file
12
config/01capteur/sensor/unraid.yaml.old
Normal file
@@ -0,0 +1,12 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
unraid_array_status:
|
||||
friendly_name: UnRAID Array Status
|
||||
value_template: >
|
||||
{{state_attr("binary_sensor.tower_server", "arrayStatus")}}
|
||||
unraid_array_space:
|
||||
friendly_name: UnRAID Array Space
|
||||
value_template: >
|
||||
{% set state = state_attr("switch.tower_server", "diskSpace") %}
|
||||
{{ Offline if state == None else state | regex_findall_index(".*\((\d+.?\d+) %\)") | float }}
|
||||
unit_of_measurement: '%'
|
||||
13
config/01capteur/shell_commands.yaml
Normal file
13
config/01capteur/shell_commands.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
turn_off_m83lenovo_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' root@10.0.0.178 sudo shutdown -h now"
|
||||
turn_off_pc_aorus: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.128 sudo shutdown -h now"
|
||||
turn_off_unraid_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' root@10.0.0.240 sudo shutdown -h now"
|
||||
turn_off_lenovom91_bureau_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.113 sudo shutdown -h now"
|
||||
turn_off_hp3300_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' root@10.0.1.208 sudo shutdown -h now"
|
||||
turn_off_atermitter_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' root@10.0.1.73 sudo shutdown -h now"
|
||||
|
||||
|
||||
turn_off_hp_debnas_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.16 sudo shutdown -h now"
|
||||
|
||||
screen_off_pc_yoga: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.24 busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 1"
|
||||
screen_on_pc_yoga: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.24 busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 0"
|
||||
turn_off_pc_yoga: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' gilles@10.0.0.24 sudo shutdown -h now"
|
||||
17
config/01capteur/solar/solar_optimizer.yaml
Normal file
17
config/01capteur/solar/solar_optimizer.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# http://10.0.0.2:8123/hacs/repository/643579135
|
||||
|
||||
algorithm:
|
||||
initial_temp: 1000
|
||||
min_temp: 0.1
|
||||
cooling_factor: 0.95
|
||||
max_iteration_number: 1000
|
||||
devices:
|
||||
- name: "prise_ecran"
|
||||
entity_id: "switch.prise_ecran"
|
||||
power_max: 400
|
||||
check_usable_template: "{{%if states('sensor.energy_pj1203_energy_flow_b') == 'producing' %}}"
|
||||
duration_min: 6
|
||||
duration_stop_min: 3
|
||||
action_mode: "service_call"
|
||||
service_activation: switch/turn_on"
|
||||
deactivation_service: "switch/turn_off"
|
||||
50
config/01capteur/switch/ipx800.yaml.old
Normal file
50
config/01capteur/switch/ipx800.yaml.old
Normal file
@@ -0,0 +1,50 @@
|
||||
- platform: command_line
|
||||
switches:
|
||||
ipx800_out1:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led1=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led1=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led0>(.*)</led0>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 1'
|
||||
ipx800_out2:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led2=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led2=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led1>(.*)</led1>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 2'
|
||||
ipx800_3:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led3=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led3=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led2>(.*)</led2>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 3'
|
||||
ipx800_out4:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led4=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led4=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led3>(.*)</led3>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 4'
|
||||
ipx800_out5:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led5=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led5=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led4>(.*)</led4>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 5'
|
||||
ipx800_out6:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led6=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led6=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led5>(.*)</led5>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 6'
|
||||
ipx800_out7:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led7=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led7=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led6>(.*)</led6>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 7'
|
||||
ipx800_out8:
|
||||
command_on: 'curl http://10.0.0.9/preset.htm?led8=1 >/dev/null'
|
||||
command_off: 'curl http://10.0.0.9/preset.htm?led8=0 >/dev/null'
|
||||
command_state: 'curl http://10.0.0.9/status.xml'
|
||||
value_template: '{% set status = value | regex_findall_index("<led7>(.*)</led7>") %} {% if status == "1" %} true {%- endif -%}'
|
||||
friendly_name: 'IPX800 Out 8'
|
||||
9
config/01capteur/switch/moonraker.yaml.old2
Normal file
9
config/01capteur/switch/moonraker.yaml.old2
Normal file
@@ -0,0 +1,9 @@
|
||||
- platform: rest
|
||||
name: u20_V0_power
|
||||
resource: "http://10.0.0.194:7125/machine/device_power/device?device=Printer"
|
||||
body_on: '{"action": "on"}'
|
||||
body_off: '{"action": "off"}'
|
||||
headers:
|
||||
Content-Type: 'application/json'
|
||||
is_on_template: >-
|
||||
{{ 'result' in value_json and (value_json.result.values() | list | first == "on") }}
|
||||
85
config/01capteur/switch/remote.yaml.old
Normal file
85
config/01capteur/switch/remote.yaml.old
Normal file
@@ -0,0 +1,85 @@
|
||||
|
||||
- platform: broadlink
|
||||
#host: 10.0.0.106
|
||||
mac: 78:0F:77:FD:46:6C
|
||||
timeout: 60
|
||||
#type: rm2_pro_plus
|
||||
switches:
|
||||
# TV
|
||||
tv_onoff:
|
||||
friendly_name: "TV"
|
||||
command_on: 'JgBYAAABIJISExETETcSEhISEhQQFBETETcROBESEjcRNhM1EjcTNRMTERISNxEUERMSExE2EjYSNhM2EhIROBE3ETcREhITEgAFGwABH0oSAAwzAAEfShEADQU='
|
||||
command_off: 'JgBYAAABHpISEhMSETYTEhATEhQREhMSEDgRNxISEjcRNxE1EjcSNhM1EhISNhEUERETEhI1EjcSEhE4ExARNxI3ETYTERMSEQAFGAABIEgTAAwpAAEfSRIADQU='
|
||||
tv_tv:
|
||||
friendly_name: "Mode_Télé"
|
||||
command_on: 'JgBYAAABKJQSExEUEjcTEhITExISExITEjcSOBEUETgSOBE5ETgTNxEUEhMSEhMSEjgROBI4ETkSNxM3ETkTNhITERQSExETEgAFJwABJ0sSAAxXAAEmSxMADQU='
|
||||
command_off: 'JgBYAAABKJQSExEUEjcTEhITExISExITEjcSOBEUETgSOBE5ETgTNxEUEhMSEhMSEjgROBI4ETkSNxM3ETkTNhITERQSExETEgAFJwABJ0sSAAxXAAEmSxMADQU='
|
||||
tv_source:
|
||||
friendly_name: "Source"
|
||||
command_on: 'JgBYAAABJ5UTERITEjgRFRATExITEhMSETgTNxEUEjcTNxM3ETgSOBI4EjcTEhM3ERQSEhITEhMSExEUEjcUERI4ETgTNxE4EwAFJgABJ0sSAAxWAAEnSxIADQU='
|
||||
command_off: 'JgBYAAABJ5UTERITEjgRFRATExITEhMSETgTNxEUEjcTNxM3ETgSOBI4EjcTEhM3ERQSEhITEhMSExEUEjcUERI4ETgTNxE4EwAFJgABJ0sSAAxWAAEnSxIADQU='
|
||||
tv_vol_up:
|
||||
friendly_name: "Vol+"
|
||||
command_on: 'JgBYAAABKZMRFBEVETcSExEVEBUQFBMSETgSOBITEjcRORE4EjkRNhMUETgRFBITERQQFBIUEBQRORITETgSOBE4EjgRORI3EwAFJgABJ0sRAAxXAAEnSxEADQU='
|
||||
command_off: 'JgBYAAABKZMRFBEVETcSExEVEBUQFBMSETgSOBITEjcRORE4EjkRNhMUETgRFBITERQQFBIUEBQRORITETgSOBE4EjgRORI3EwAFJgABJ0sRAAxXAAEnSxEADQU='
|
||||
tv_vol_down:
|
||||
friendly_name: "Vol-"
|
||||
command_on: 'JgBYAAABKJQTEhISEjgRFBEUEhITEhIUEDkSNxMSEjgSNxM3EjgSNxI4ETkRFBMREhMRFRETERQRExITEzcSNxM3EjgSNxM3EgAFJwABJkwRAAxXAAEoShMADQU='
|
||||
command_off: 'JgBYAAABKJQTEhISEjgRFBEUEhITEhIUEDkSNxMSEjgSNxM3EjgSNxI4ETkRFBMREhMRFRETERQRExITEzcSNxM3EjgSNxM3EgAFJwABJkwRAAxXAAEoShMADQU='
|
||||
tv_prog_up:
|
||||
friendly_name: "Prog+"
|
||||
command_on: 'JgBYAAABJ5QTEhITETkSExETEhMSExMSEjcTNxEUEjcUNhI4EjcSOBITERQSEhITExISExEUERQROBI4EjcSOBE5ETgTNxE5EgAFJgABJ0sRAAxYAAEmTBEADQU='
|
||||
command_off: 'JgBYAAABJ5QTEhITETkSExETEhMSExMSEjcTNxEUEjcUNhI4EjcSOBITERQSEhITExISExEUERQROBI4EjcSOBE5ETgTNxE5EgAFJgABJ0sRAAxYAAEmTBEADQU='
|
||||
tv_prog_down:
|
||||
friendly_name: "Prog-"
|
||||
command_on: 'JgBQAAABJ5QTEhMSETkRExITEhMTEhEUETgTNxITETgTNxI4EjcTNxI4ERMTEhMTERMRFBITERMTEhI4ETgTNxI4EjcTNxI4EQAFJwABJ0sSAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABJ5QTEhMSETkRExITEhMTEhEUETgTNxITETgTNxI4EjcTNxI4ERMTEhMTERMRFBITERMTEhI4ETgTNxI4EjcTNxI4EQAFJwABJ0sSAA0FAAAAAAAAAAA='
|
||||
tv_mute:
|
||||
friendly_name: "Mute"
|
||||
command_on: 'JgBYAAABKJQSExEUETgSExITEhMRFBITEDkSNxIUETgROBM3EjgROBI4EhMRFBA5EhMRFBEUERQRExM3ETkSExI3ETkSNxI4EgAFJgABJ0sTAAxWAAEoShIADQU='
|
||||
command_off: 'JgBYAAABKJQSExEUETgSExITEhMRFBITEDkSNxIUETgROBM3EjgROBI4EhMRFBA5EhMRFBEUERQRExM3ETkSExI3ETkSNxI4EgAFJgABJ0sTAAxWAAEoShIADQU='
|
||||
tv_1:
|
||||
friendly_name: "1"
|
||||
command_on: 'JgBgAAABJ5URExMTETgRFBEUERQRExIUEDkSNxYPEjgROBI4ETkROBM3EhQRExETETgTExEUERQRFBE4EjcTOBETEjgSNxM3EQAFJwABKEoSAAxXAAEnSxIADFYAASdKEwANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5URExMTETgRFBEUERQRExIUEDkSNxYPEjgROBI4ETkROBM3EhQRExETETgTExEUERQRFBE4EjcTOBETEjgSNxM3EQAFJwABKEoSAAxXAAEnSxIADFYAASdKEwANBQAAAAAAAAAA'
|
||||
tv_2:
|
||||
friendly_name: "2"
|
||||
command_on: 'JgBQAAABJ5USExETETkRFBEUERQQFRAVEDkROBEVEDkROBE5ETgSOBIUEDkRExIUEDkSExETEhQQOREUEjcSOBEUEjcRORI4EQAFKAABJUwRAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABJ5USExETETkRFBEUERQQFRAVEDkROBEVEDkROBE5ETgSOBIUEDkRExIUEDkSExETEhQQOREUEjcSOBEUEjcRORI4EQAFKAABJUwRAA0FAAAAAAAAAAA='
|
||||
tv_3:
|
||||
friendly_name: "3"
|
||||
command_on: 'JgBgAAABJ5QSExEVEjYSFBETEhMSExEUETgSOBITEjcSOBI3EzcRORI3EjgRFRAVETcSFBETERUQExMSEzcRORETEjgRORI3EgAFJgABKEoSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5QSExEVEjYSFBETEhMSExEUETgSOBITEjcSOBI3EzcRORI3EjgRFRAVETcSFBETERUQExMSEzcRORETEjgRORI3EgAFJgABKEoSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
tv_4:
|
||||
friendly_name: "4"
|
||||
command_on: 'JgBYAAABJ5QUEhETETkRFBAUExMQFQ8WETcSOBEUETgTNxI4ETgSOBEVEBQROBEUETkSExETExIRORE4ExMROBEUETgTNxE4EgAFJgABKEoTAAxWAAEnTBEADQU='
|
||||
command_off: 'JgBYAAABJ5QUEhETETkRFBAUExMQFQ8WETcSOBEUETgTNxI4ETgSOBEVEBQROBEUETkSExETExIRORE4ExMROBEUETgTNxE4EgAFJgABKEoTAAxWAAEnTBEADQU='
|
||||
tv_5:
|
||||
friendly_name: "5"
|
||||
command_on: 'JgBQAAABKJQRFRAVDzkSFBEUERQQFBEUETkQOREUEjcRORA5EjgRORI4ERMROREUETkQFRAVEBMSFBE4EhQQOREUETgSNxI4EwAFKAABJksRAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABKJQRFRAVDzkSFBEUERQQFBEUETkQOREUEjcRORA5EjgRORI4ERMROREUETkQFRAVEBMSFBE4EhQQOREUETgSNxI4EwAFKAABJksRAA0FAAAAAAAAAAA='
|
||||
tv_6:
|
||||
friendly_name: "6"
|
||||
command_on: 'JgBgAAABJpUTEhITETkSEhMTEhIRFBITEjcTNxEVEDgSOBI4ETgSOBEUEjcSOBEUETgSExEUERUQOBITEhMSOBEUETgRORE4EgAFJgABKEoSAAxWAAEnSxIADFYAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJpUTEhITETkSEhMTEhIRFBITEjcTNxEVEDgSOBI4ETgSOBEUEjcSOBEUETgSExEUERUQOBITEhMSOBEUETgRORE4EgAFJgABKEoSAAxWAAEnSxIADFYAASdLEQANBQAAAAAAAAAA'
|
||||
tv_7:
|
||||
friendly_name: "7"
|
||||
command_on: 'JgBgAAABJ5USEhITEjkQFBEUEhITEhIUEDkROBIUEDgSORE4ETgTNxE5ETgSOBIUEDgSExITERUQFBETEhQROBIUEDgSOBE5EQAFJwABJ0sSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5USEhITEjkQFBEUEhITEhIUEDkROBIUEDgSORE4ETgTNxE5ETgSOBIUEDgSExITERUQFBETEhQROBIUEDgSOBE5EQAFJwABJ0sSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
tv_8:
|
||||
friendly_name: "8"
|
||||
command_on: 'JgBgAAABKJQRFBEUETgSExIUEBQRFBETEjgSOBITETgSOBE4EjgSOBITERMTExE4ETgSFBETERQRORM2EjkTERMSEjcRORI3EwAFJgABJ0sSAAxXAAEoShEADFgAASZMEgANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABKJQRFBEUETgSExIUEBQRFBETEjgSOBITETgSOBE4EjgSOBITERMTExE4ETgSFBETERQRORM2EjkTERMSEjcRORI3EwAFJgABJ0sSAAxXAAEoShEADFgAASZMEgANBQAAAAAAAAAA'
|
||||
tv_9:
|
||||
friendly_name: "9"
|
||||
command_on: 'JgBgAAABJ5URFBEUETgSExITERUQFBETEjgRORMREjgRORI3EjgROBI4ERQRFRE3EzcTExAUEhISFBE4ETkRFBITETgSNxM3EgAFJwABKEkTAAxWAAEmTBIADFYAASdLEgANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5URFBEUETgSExITERUQFBETEjgRORMREjgRORI3EjgROBI4ERQRFRE3EzcTExAUEhISFBE4ETkRFBITETgSNxM3EgAFJwABKEkTAAxWAAEmTBIADFYAASdLEgANBQAAAAAAAAAA'
|
||||
tv_0:
|
||||
friendly_name: "0"
|
||||
command_on: 'JgBgAAABJ5USExITETgSFBETERQRFBETEjkQOBMSEjgSNxI4EjgSNxMSEhMRFBEUEjcTEhEVERMROBI4ETgSOBEUETgTNxI4EQAFJwABJkwRAAxXAAEnSxEADFcAAShKEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5USExITETgSFBETERQRFBETEjkQOBMSEjgSNxI4EjgSNxMSEhMRFBEUEjcTEhEVERMROBI4ETgSOBEUETgTNxI4EQAFJwABJkwRAAxXAAEnSxEADFcAAShKEQANBQAAAAAAAAAA'
|
||||
# VideoProjecteur
|
||||
vp_onoff:
|
||||
friendly_name: "VideoProjecteur"
|
||||
command_on: 'JgBYAAABKJQVEBMTEhITNxMSExMREhMSEjgSOBITFBESOBITEhITEhI4FDYTNxMTERMSExITEDoUERMRExISOBQ2EzcTNxMSEgAF0gABKEoTAAxsAAEoShMADQU='
|
||||
command_off: 'JgDKAJCREjUUERI2EjYRExETEDcSEhETETcRExETETcRNxETETcQFBE2ETcSNhE2ExERNxI2EjYSEhETERMRExE3EhIRExE2ETcSNhETEhIRExETEhISEhISExESNhE2EjYSNhI2EK6QkRE2EhISNhI2EhISEhI2ERMRExI2ERMRExA3EjYRExI2EhIRNxE2EjYSNhISEjYRNhI2ERMSEhISEhIRNxETERMSNhE3EDcSEhETERMSEhISERMSEhETEzUSNhI1EjYSNhEADQUAAAAAAAAAAAAAAAAAAA=='
|
||||
91
config/01capteur/switch/remote.yaml.old2
Normal file
91
config/01capteur/switch/remote.yaml.old2
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
- platform: broadlink
|
||||
#host: 10.0.0.106
|
||||
mac: 78:0F:77:FD:46:6C
|
||||
#timeout: 60
|
||||
#type: rm2_pro_plus
|
||||
switches:
|
||||
# TV
|
||||
tv_onoff:
|
||||
friendly_name: "TV"
|
||||
command_on: 'JgBYAAABIJISExETETcSEhISEhQQFBETETcROBESEjcRNhM1EjcTNRMTERISNxEUERMSExE2EjYSNhM2EhIROBE3ETcREhITEgAFGwABH0oSAAwzAAEfShEADQU='
|
||||
command_off: 'JgBYAAABHpISEhMSETYTEhATEhQREhMSEDgRNxISEjcRNxE1EjcSNhM1EhISNhEUERETEhI1EjcSEhE4ExARNxI3ETYTERMSEQAFGAABIEgTAAwpAAEfSRIADQU='
|
||||
tv_tv:
|
||||
friendly_name: "Mode_Télé"
|
||||
command_on: 'JgBYAAABKJQSExEUEjcTEhITExISExITEjcSOBEUETgSOBE5ETgTNxEUEhMSEhMSEjgROBI4ETkSNxM3ETkTNhITERQSExETEgAFJwABJ0sSAAxXAAEmSxMADQU='
|
||||
command_off: 'JgBYAAABKJQSExEUEjcTEhITExISExITEjcSOBEUETgSOBE5ETgTNxEUEhMSEhMSEjgROBI4ETkSNxM3ETkTNhITERQSExETEgAFJwABJ0sSAAxXAAEmSxMADQU='
|
||||
tv_source:
|
||||
friendly_name: "Source"
|
||||
command_on: 'JgBYAAABJ5UTERITEjgRFRATExITEhMSETgTNxEUEjcTNxM3ETgSOBI4EjcTEhM3ERQSEhITEhMSExEUEjcUERI4ETgTNxE4EwAFJgABJ0sSAAxWAAEnSxIADQU='
|
||||
command_off: 'JgBYAAABJ5UTERITEjgRFRATExITEhMSETgTNxEUEjcTNxM3ETgSOBI4EjcTEhM3ERQSEhITEhMSExEUEjcUERI4ETgTNxE4EwAFJgABJ0sSAAxWAAEnSxIADQU='
|
||||
tv_vol_up:
|
||||
friendly_name: "Vol+"
|
||||
command_on: 'JgBYAAABKZMRFBEVETcSExEVEBUQFBMSETgSOBITEjcRORE4EjkRNhMUETgRFBITERQQFBIUEBQRORITETgSOBE4EjgRORI3EwAFJgABJ0sRAAxXAAEnSxEADQU='
|
||||
command_off: 'JgBYAAABKZMRFBEVETcSExEVEBUQFBMSETgSOBITEjcRORE4EjkRNhMUETgRFBITERQQFBIUEBQRORITETgSOBE4EjgRORI3EwAFJgABJ0sRAAxXAAEnSxEADQU='
|
||||
tv_vol_down:
|
||||
friendly_name: "Vol-"
|
||||
command_on: 'JgBYAAABKJQTEhISEjgRFBEUEhITEhIUEDkSNxMSEjgSNxM3EjgSNxI4ETkRFBMREhMRFRETERQRExITEzcSNxM3EjgSNxM3EgAFJwABJkwRAAxXAAEoShMADQU='
|
||||
command_off: 'JgBYAAABKJQTEhISEjgRFBEUEhITEhIUEDkSNxMSEjgSNxM3EjgSNxI4ETkRFBMREhMRFRETERQRExITEzcSNxM3EjgSNxM3EgAFJwABJkwRAAxXAAEoShMADQU='
|
||||
tv_prog_up:
|
||||
friendly_name: "Prog+"
|
||||
command_on: 'JgBYAAABJ5QTEhITETkSExETEhMSExMSEjcTNxEUEjcUNhI4EjcSOBITERQSEhITExISExEUERQROBI4EjcSOBE5ETgTNxE5EgAFJgABJ0sRAAxYAAEmTBEADQU='
|
||||
command_off: 'JgBYAAABJ5QTEhITETkSExETEhMSExMSEjcTNxEUEjcUNhI4EjcSOBITERQSEhITExISExEUERQROBI4EjcSOBE5ETgTNxE5EgAFJgABJ0sRAAxYAAEmTBEADQU='
|
||||
tv_prog_down:
|
||||
friendly_name: "Prog-"
|
||||
command_on: 'JgBQAAABJ5QTEhMSETkRExITEhMTEhEUETgTNxITETgTNxI4EjcTNxI4ERMTEhMTERMRFBITERMTEhI4ETgTNxI4EjcTNxI4EQAFJwABJ0sSAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABJ5QTEhMSETkRExITEhMTEhEUETgTNxITETgTNxI4EjcTNxI4ERMTEhMTERMRFBITERMTEhI4ETgTNxI4EjcTNxI4EQAFJwABJ0sSAA0FAAAAAAAAAAA='
|
||||
tv_mute:
|
||||
friendly_name: "Mute"
|
||||
command_on: 'JgBYAAABKJQSExEUETgSExITEhMRFBITEDkSNxIUETgROBM3EjgROBI4EhMRFBA5EhMRFBEUERQRExM3ETkSExI3ETkSNxI4EgAFJgABJ0sTAAxWAAEoShIADQU='
|
||||
command_off: 'JgBYAAABKJQSExEUETgSExITEhMRFBITEDkSNxIUETgROBM3EjgROBI4EhMRFBA5EhMRFBEUERQRExM3ETkSExI3ETkSNxI4EgAFJgABJ0sTAAxWAAEoShIADQU='
|
||||
tv_1:
|
||||
friendly_name: "1"
|
||||
command_on: 'JgBgAAABJ5URExMTETgRFBEUERQRExIUEDkSNxYPEjgROBI4ETkROBM3EhQRExETETgTExEUERQRFBE4EjcTOBETEjgSNxM3EQAFJwABKEoSAAxXAAEnSxIADFYAASdKEwANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5URExMTETgRFBEUERQRExIUEDkSNxYPEjgROBI4ETkROBM3EhQRExETETgTExEUERQRFBE4EjcTOBETEjgSNxM3EQAFJwABKEoSAAxXAAEnSxIADFYAASdKEwANBQAAAAAAAAAA'
|
||||
tv_2:
|
||||
friendly_name: "2"
|
||||
command_on: 'JgBQAAABJ5USExETETkRFBEUERQQFRAVEDkROBEVEDkROBE5ETgSOBIUEDkRExIUEDkSExETEhQQOREUEjcSOBEUEjcRORI4EQAFKAABJUwRAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABJ5USExETETkRFBEUERQQFRAVEDkROBEVEDkROBE5ETgSOBIUEDkRExIUEDkSExETEhQQOREUEjcSOBEUEjcRORI4EQAFKAABJUwRAA0FAAAAAAAAAAA='
|
||||
tv_3:
|
||||
friendly_name: "3"
|
||||
command_on: 'JgBgAAABJ5QSExEVEjYSFBETEhMSExEUETgSOBITEjcSOBI3EzcRORI3EjgRFRAVETcSFBETERUQExMSEzcRORETEjgRORI3EgAFJgABKEoSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5QSExEVEjYSFBETEhMSExEUETgSOBITEjcSOBI3EzcRORI3EjgRFRAVETcSFBETERUQExMSEzcRORETEjgRORI3EgAFJgABKEoSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
tv_4:
|
||||
friendly_name: "4"
|
||||
command_on: 'JgBYAAABJ5QUEhETETkRFBAUExMQFQ8WETcSOBEUETgTNxI4ETgSOBEVEBQROBEUETkSExETExIRORE4ExMROBEUETgTNxE4EgAFJgABKEoTAAxWAAEnTBEADQU='
|
||||
command_off: 'JgBYAAABJ5QUEhETETkRFBAUExMQFQ8WETcSOBEUETgTNxI4ETgSOBEVEBQROBEUETkSExETExIRORE4ExMROBEUETgTNxE4EgAFJgABKEoTAAxWAAEnTBEADQU='
|
||||
tv_5:
|
||||
friendly_name: "5"
|
||||
command_on: 'JgBQAAABKJQRFRAVDzkSFBEUERQQFBEUETkQOREUEjcRORA5EjgRORI4ERMROREUETkQFRAVEBMSFBE4EhQQOREUETgSNxI4EwAFKAABJksRAA0FAAAAAAAAAAA='
|
||||
command_off: 'JgBQAAABKJQRFRAVDzkSFBEUERQQFBEUETkQOREUEjcRORA5EjgRORI4ERMROREUETkQFRAVEBMSFBE4EhQQOREUETgSNxI4EwAFKAABJksRAA0FAAAAAAAAAAA='
|
||||
tv_6:
|
||||
friendly_name: "6"
|
||||
command_on: 'JgBgAAABJpUTEhITETkSEhMTEhIRFBITEjcTNxEVEDgSOBI4ETgSOBEUEjcSOBEUETgSExEUERUQOBITEhMSOBEUETgRORE4EgAFJgABKEoSAAxWAAEnSxIADFYAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJpUTEhITETkSEhMTEhIRFBITEjcTNxEVEDgSOBI4ETgSOBEUEjcSOBEUETgSExEUERUQOBITEhMSOBEUETgRORE4EgAFJgABKEoSAAxWAAEnSxIADFYAASdLEQANBQAAAAAAAAAA'
|
||||
tv_7:
|
||||
friendly_name: "7"
|
||||
command_on: 'JgBgAAABJ5USEhITEjkQFBEUEhITEhIUEDkROBIUEDgSORE4ETgTNxE5ETgSOBIUEDgSExITERUQFBETEhQROBIUEDgSOBE5EQAFJwABJ0sSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5USEhITEjkQFBEUEhITEhIUEDkROBIUEDgSORE4ETgTNxE5ETgSOBIUEDgSExITERUQFBETEhQROBIUEDgSOBE5EQAFJwABJ0sSAAxXAAEnSxEADFcAASdLEQANBQAAAAAAAAAA'
|
||||
tv_8:
|
||||
friendly_name: "8"
|
||||
command_on: 'JgBgAAABKJQRFBEUETgSExIUEBQRFBETEjgSOBITETgSOBE4EjgSOBITERMTExE4ETgSFBETERQRORM2EjkTERMSEjcRORI3EwAFJgABJ0sSAAxXAAEoShEADFgAASZMEgANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABKJQRFBEUETgSExIUEBQRFBETEjgSOBITETgSOBE4EjgSOBITERMTExE4ETgSFBETERQRORM2EjkTERMSEjcRORI3EwAFJgABJ0sSAAxXAAEoShEADFgAASZMEgANBQAAAAAAAAAA'
|
||||
tv_9:
|
||||
friendly_name: "9"
|
||||
command_on: 'JgBgAAABJ5URFBEUETgSExITERUQFBETEjgRORMREjgRORI3EjgROBI4ERQRFRE3EzcTExAUEhISFBE4ETkRFBITETgSNxM3EgAFJwABKEkTAAxWAAEmTBIADFYAASdLEgANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5URFBEUETgSExITERUQFBETEjgRORMREjgRORI3EjgROBI4ERQRFRE3EzcTExAUEhISFBE4ETkRFBITETgSNxM3EgAFJwABKEkTAAxWAAEmTBIADFYAASdLEgANBQAAAAAAAAAA'
|
||||
tv_0:
|
||||
friendly_name: "0"
|
||||
command_on: 'JgBgAAABJ5USExITETgSFBETERQRFBETEjkQOBMSEjgSNxI4EjgSNxMSEhMRFBEUEjcTEhEVERMROBI4ETgSOBEUETgTNxI4EQAFJwABJkwRAAxXAAEnSxEADFcAAShKEQANBQAAAAAAAAAA'
|
||||
command_off: 'JgBgAAABJ5USExITETgSFBETERQRFBETEjkQOBMSEjgSNxI4EjgSNxMSEhMRFBEUEjcTEhEVERMROBI4ETgSOBEUETgTNxI4EQAFJwABJkwRAAxXAAEnSxEADFcAAShKEQANBQAAAAAAAAAA'
|
||||
# VideoProjecteur
|
||||
vp_onoff:
|
||||
friendly_name: "VideoProjecteur"
|
||||
command_on: 'JgBYAAABKJQVEBMTEhITNxMSExMREhMSEjgSOBITFBESOBITEhITEhI4FDYTNxMTERMSExITEDoUERMRExISOBQ2EzcTNxMSEgAF0gABKEoTAAxsAAEoShMADQU='
|
||||
command_off: 'JgDKAJCREjUUERI2EjYRExETEDcSEhETETcRExETETcRNxETETcQFBE2ETcSNhE2ExERNxI2EjYSEhETERMRExE3EhIRExE2ETcSNhETEhIRExETEhISEhISExESNhE2EjYSNhI2EK6QkRE2EhISNhI2EhISEhI2ERMRExI2ERMRExA3EjYRExI2EhIRNxE2EjYSNhISEjYRNhI2ERMSEhISEhIRNxETERMSNhE3EDcSEhETERMSEhISERMSEhETEzUSNhI1EjYSNhEADQUAAAAAAAAAAAAAAAAAAA=='
|
||||
amibot_clean:
|
||||
friendly_name: "Nettoyage"
|
||||
command_on: 'JgBIAAABJpMSExITEhMRFBETEhMSNxMTETgRFBE4EhMSOBEUETgSExITERQROBEUERMSExI4ERQROBI4EhMROBE4EjgSExI3EgANBQ=='
|
||||
amibot_base:
|
||||
friendly_name: "Base"
|
||||
command_on: 'JgBIAAABJpMTEhITEhMRFBEUERMROBIUETgRFRA4ERQTNxITEjcRFBE4FBEUERITETgSExITERQRExM3ETgSOBEUETgROBI5EQANBQ=='
|
||||
16
config/01capteur/switch/remote_amibot.yaml.old
Normal file
16
config/01capteur/switch/remote_amibot.yaml.old
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
- platform: broadlink
|
||||
#host: 10.0.0.106
|
||||
mac: 78:0F:77:FD:46:6C
|
||||
timeout: 60
|
||||
#type: rm2_pro_plus
|
||||
switches:
|
||||
# amibot
|
||||
- name: Amibot_Clean
|
||||
friendly_name: "Nettoyage"
|
||||
command_on: 'JgBIAAABJpMSExITEhMRFBETEhMSNxMTETgRFBE4EhMSOBEUETgSExITERQROBEUERMSExI4ERQROBI4EhMROBE4EjgSExI3EgANBQ=='
|
||||
|
||||
- name: Amibot_Base
|
||||
friendly_name: "Base"
|
||||
command_on: 'JgBIAAABJpMTEhITEhMRFBEUERMROBIUETgRFRA4ERQTNxITEjcRFBE4FBEUERITETgSExITERQRExM3ETgSOBEUETgROBI5EQANBQ=='
|
||||
|
||||
1
config/01capteur/switch/switches.yaml
Normal file
1
config/01capteur/switch/switches.yaml
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
84
config/01capteur/switch/wakeonlan.yaml
Normal file
84
config/01capteur/switch/wakeonlan.yaml
Normal file
@@ -0,0 +1,84 @@
|
||||
|
||||
# pc TOWER NAS
|
||||
- platform: wake_on_lan
|
||||
name: "NAS Unraid Tower"
|
||||
mac: d4:be:d9:93:5e:dd
|
||||
host: 10.0.0.240
|
||||
turn_off:
|
||||
service: shell_command.turn_off_unraid_pc
|
||||
# pc proxmoxM83
|
||||
- platform: wake_on_lan
|
||||
name: "pve-lenovoM83"
|
||||
mac: 00:23:24:79:3e:e0
|
||||
host: 10.0.0.178
|
||||
turn_off:
|
||||
service: shell_command.turn_off_m83lenovo_pc
|
||||
|
||||
# pc HP3300_debian3D
|
||||
- platform: wake_on_lan
|
||||
name: "pc_HP3300"
|
||||
mac: 3C:D9:2B:74:C1:47
|
||||
host: 10.0.1.208
|
||||
turn_off:
|
||||
service: shell_command.turn_off_hp3300_pc
|
||||
# pc Lenovo M91 Bureau
|
||||
- platform: wake_on_lan
|
||||
name: "pc_lenovoM91_bureau"
|
||||
mac: 44:37:e6:6b:53:86
|
||||
host: 10.0.0.113
|
||||
turn_off:
|
||||
service: shell_command.turn_off_lenovom91_bureau_pc
|
||||
# pc HPdc7900_NAS
|
||||
- platform: wake_on_lan
|
||||
name: "hpdc7900_NAS16"
|
||||
mac: 00:25:b3:12:45:b9
|
||||
host: 10.0.0.16
|
||||
turn_off:
|
||||
service: shell_command.turn_off_hp_debnas_pc
|
||||
|
||||
|
||||
# pc atermitter
|
||||
- platform: wake_on_lan
|
||||
name: "pc_atermitter"
|
||||
mac: 00:E0:0B:14:35:7A
|
||||
host: 10.0.1.73
|
||||
turn_off:
|
||||
service: shell_command.turn_off_atermitter_pc
|
||||
# pc BUREAU Aorus
|
||||
- platform: wake_on_lan
|
||||
name: "pc_Aorus"
|
||||
mac: 18:C0:4D:B5:65:74
|
||||
host: 10.0.0.128
|
||||
turn_off:
|
||||
service: shell_command.turn_off_pc_aorus
|
||||
|
||||
|
||||
|
||||
# pc solar-deb
|
||||
- platform: wake_on_lan
|
||||
name: "solar-deb"
|
||||
mac: 9c:8e:99:c7:83:29
|
||||
host: 10.0.0.14
|
||||
turn_off:
|
||||
service: mqtt.publish
|
||||
data_template:
|
||||
topic: "cmnd/solar-deb"
|
||||
payload: "shutdown"
|
||||
|
||||
# pc yoga
|
||||
- platform: wake_on_lan
|
||||
name: "pc-yoga"
|
||||
mac: 60:57:18:99:ed:05
|
||||
host: 10.0.0.24
|
||||
turn_off:
|
||||
service: shell_command.turn_off_pc_yoga
|
||||
#screen_off
|
||||
- platform: template
|
||||
switches:
|
||||
yoga_screen:
|
||||
friendly_name: "Screen PC Yoga"
|
||||
unique_id: "pc-yoga1"
|
||||
turn_on:
|
||||
service: shell_command.screen_on_pc_yoga
|
||||
turn_off:
|
||||
service: shell_command.screen_off_pc_yoga
|
||||
208
config/01capteur/template/template.yaml
Normal file
208
config/01capteur/template/template.yaml
Normal file
@@ -0,0 +1,208 @@
|
||||
- sensor:
|
||||
- name: "Alerte Orages"
|
||||
unique_id: sensor.alerte_orages
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Orages') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune orages' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange orages' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge orages' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:weather-lightning
|
||||
|
||||
- name: "Alerte Vent violent"
|
||||
unique_id: sensor.alerte_vent_violent
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Vent violent') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune vent-violent' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange vent-violent' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge vent-violent' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:weather-windy
|
||||
|
||||
- name: "Alerte Pluie Inondation"
|
||||
unique_id: sensor.alerte_pluie_inondation
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Pluie_inondation') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune pluie_inondation' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange pluie_inondation' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge pluie_inondation' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:weather-pouring
|
||||
|
||||
- name: "Alerte Inondation"
|
||||
unique_id: sensor.alerte_inondation
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Inondation') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune inondation' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange inondation' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge inondation' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:waves-arrow-up
|
||||
|
||||
- name: "Alerte Canicule"
|
||||
unique_id: sensor.alerte_canicule
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Canicule') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune canicule' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange canicule' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge canicule' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:weather-sunny
|
||||
|
||||
- name: "Alerte Neige-verglas"
|
||||
unique_id: sensor.alerte_neige_verglas
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Neige-verglas') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune neige-verglas' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange neige-verglas' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge neige-verglas' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:snowflake
|
||||
|
||||
- name: "Alerte Grand-froid"
|
||||
unique_id: sensor.alerte_grand_froid
|
||||
state: >-
|
||||
{% set wa = (state_attr('sensor.43_weather_alert', 'Grand-froid') ) %}
|
||||
{% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') ) %}
|
||||
{% set ev = (state_attr('binary_sensor.meteoalarm','event') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif 'jaune grand-froid' in ev %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif 'orange grand-froid' in ev %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif 'rouge grand-froid' in ev %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'Vert' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
icon: mdi:snowman
|
||||
|
||||
- name: "Alerte Météo"
|
||||
unique_id: sensor.alerte_meteo
|
||||
state: >-
|
||||
{% set wa = (states('sensor.43_weather_alert') ) %}
|
||||
{% set al = (state_attr('binary_sensor.meteoalarm','awareness_level') ) %}
|
||||
{% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge'] %}
|
||||
{% set al = wa %}
|
||||
{% elif '1' in al %}
|
||||
{% set al = 'Vert' %}
|
||||
{% elif '2' in al %}
|
||||
{% set al = 'Jaune' %}
|
||||
{% elif '3' in al %}
|
||||
{% set al = 'Orange' %}
|
||||
{% elif '4' in al %}
|
||||
{% set al = 'Rouge' %}
|
||||
{% else %}
|
||||
{% set al = 'unknown' %}
|
||||
{% endif %}
|
||||
{{ al }}
|
||||
attributes:
|
||||
Date: >-
|
||||
{% set dt = (state_attr('binary_sensor.meteoalarm','urgency') ) %}
|
||||
{% if dt == 'Future' %}
|
||||
{% set val = 'Demain' %}
|
||||
{% else %}
|
||||
{% set val = dt %}
|
||||
{% endif %}
|
||||
{{ val }}
|
||||
Orages: >-
|
||||
{% set val = states('sensor.alerte_orages') %}
|
||||
{{ val }}
|
||||
Vent Violent: >-
|
||||
{% set val = states('sensor.alerte_vent_violent') %}
|
||||
{{ val }}
|
||||
Pluie Inondation: >-
|
||||
{% set val = states('sensor.alerte_pluie_inondation') %}
|
||||
{{ val }}
|
||||
Inondation: >-
|
||||
{% set val = states('sensor.alerte_Inondation') %}
|
||||
{{ val }}
|
||||
Canicule: >-
|
||||
{% set val = states('sensor.alerte_canicule') %}
|
||||
{{ val }}
|
||||
Grand Froid: >-
|
||||
{% set val = states('sensor.alerte_grand_froid') %}
|
||||
{{ val }}
|
||||
Neige Verglas: >-
|
||||
{% set val = states('sensor.alerte_neige_verglas') %}
|
||||
{{ val }}
|
||||
icon: mdi:weather-cloudy-alert
|
||||
|
||||
- binary_sensor:
|
||||
- state: "{{states('sensor.athom_smart_plug_elegoomars_1_wattage') | float(default =0) > 5}}"
|
||||
name: impression SLA en cours
|
||||
unique_id: is_sla_printinig_running
|
||||
device_class: running
|
||||
delay_off: "00:02:00"
|
||||
# - state: "{{states('sensor.bl0937_power_4') | float(default =0) > 5}}"
|
||||
# name: Machine a laver en cours
|
||||
# unique_id: is_washing_machine_running
|
||||
# device_class: running
|
||||
# delay_off: "00:02:00"
|
||||
# - state: "{{states('sensor.bl0937_power_sl') | float(default =0) > 5}}"
|
||||
# name: SecheLinge en cours
|
||||
# unique_id: is_sechelinge_running
|
||||
# device_class: running
|
||||
# delay_off: "00:02:00"
|
||||
Reference in New Issue
Block a user