Create an MQTT binary sensor. Replace <deviceid>
with your devicve id.
binary_sensor:
- platform: mqtt
name: Flood Sensor
state_topic: "shellies/shellyflood-<deviceid>/sensor/flood"
payload_on: "true"
payload_off: "false"
Then add this to your customize.yaml:
binary_sensor.flood_sensor:
icon: mdi:pipe-leak # or whatever icon you want for the flood sensor from here: https://materialdesignicons.com/
There are also two sensors available:
sensor:
- platform: mqtt
name: Battery Level
state_topic: "shellies/shellyflood-<deviceid>/sensor/battery"
value_template: {{ value }}
unit_of_measurement: "%"
icon: mdi:battery-70
- platform: mqtt
name: Temperature
state_topic: "shellies/shellyflood-<deviceid>/sensor/temperature"
value_template: {{ value }}
unit_of_measurement: "°C" # or "°F" depending on your settings
icon: mdi:thermometer
Untested. Info from here: https://shelly-api-docs.shelly.cloud/#shelly-flood