Project /
Tasmota
Tasmota firmware for Sonoff
Get sensors values
http://192.168.1.20/cm?cmnd=status%2010
Listen all MQTT topics
mosquitto_sub -v -h 192.168.1.230 -t "#"
Control relay over HTTP: Toggle
http://192.168.1.234/cm?cmnd=Power%20Toggle
Detach button from relay
SetOption73 1
cf: https://tasmota.github.io/docs/Buttons-and-Switches/#button
Toggle relay via Websend rule
Rule1 ON Button1#Action DO WebSend [192.168.1.235] POWER1 TOGGLE ENDON
disable VEML6070 to activate AHT2X
in the console, disable driver n°12 VEML6070, cf: https://tasmota.github.io/docs/I2CDEVICES/
I2cDriver12 0
Home Assistant configuration
https://gist.github.com/Jodaille/4ca25495303b2340e86f79ee952784ca
/home/homeassistant/.homeassistant/configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc) default_config: # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml mqtt: broker: 192.168.1.230 sensor: - platform: mqtt name: "Tasmota dewpoint" state_topic: "tele/tasmota_C26D46/SENSOR" unit_of_measurement: '°C' value_template: "{{ value_json.BME280.DewPoint }}" - platform: mqtt name: "Tasmota temperature" state_topic: "tele/tasmota_C26D46/SENSOR" unit_of_measurement: '°C' value_template: "{{ value_json.BME280.Temperature }}" - platform: mqtt name: "Tasmota humidity" state_topic: "tele/tasmota_C26D46/SENSOR" unit_of_measurement: '%' value_template: "{{ value_json.BME280.Humidity }}" - platform: mqtt name: "Inflator Temperature" state_topic: "tele/inflator/SENSOR" unit_of_measurement: '°C' value_template: "{{ value_json.BME280.Temperature }}" - platform: mqtt name: "Inflator Humidté" state_topic: "tele/inflator/SENSOR" unit_of_measurement: '%' value_template: "{{ value_json.BME280.Humidity }}" - platform: mqtt name: "Cheminee Temperature" state_topic: "tele/cheminee/SENSOR" unit_of_measurement: '°C' value_template: "{{ value_json.BME280.Temperature }}" - platform: mqtt name: "Cheminee humidity" state_topic: "tele/cheminee/SENSOR" unit_of_measurement: '%' value_template: "{{ value_json.BME280.Humidity }}" - platform: mqtt name: "Pression atmosphérique" state_topic: "tele/cheminee/SENSOR" unit_of_measurement: 'hPa' value_template: "{{ value_json.BME280.Pressure }}" switch: - platform: mqtt name: "Cheminee Switch" state_topic: "stat/cheminee/RESULT" command_topic: "cmnd/cheminee/POWER" value_template: "{{ value_json.POWER }}" payload_on: "ON" payload_off: "OFF" availability_topic: "tele/cheminee/LWT" payload_available: "Online" payload_not_available: "Offline" qos: 1 - platform: mqtt name: "Inflator Switch" state_topic: "stat/inflator/RESULT" value_template: "{{ value_json.POWER }}" command_topic: "cmnd/inflator/POWER" payload_on: "ON" payload_off: "OFF" availability_topic: "tele/inflator/LWT" payload_available: "Online" payload_not_available: "Offline" qos: 1