I have several Shelly 1s and 2.5s which are automatically discovered with the new Shelly Integration but I have just connected 2 x 4Pro but they are not discovered.
Do I need to use MQTT with the 4Pros?
My summary:-
The problem is that the Shelly 4Pro firmware is not compatible with HA discovery and Shelly tell me that it will not be upgraded because of memory limitations.
I have them working with MQTT with the following config:-
- platform: mqtt
name: "Pantry Lts"
state_topic: "shellies/shelly4pro-4D0CB9/relay/3"
command_topic: "shellies/shelly4pro-4D0CB9/relay/3/command"
payload_on: "on"
payload_off: "off"
state_on: "on"
state_off: "off"
optimistic: false
qos: 1
retain: false
Thank you for this solution.
Do you by accident also have a way of getting the power and energy readings from the 4pro with mqtt or any other way?
Elsewhere I found that it should be something like this. But validating the code I always get an error, saying that ‘unit_of_measurement’ is not allowed. When I remove that line I get an error that I have to add ‘command_topic’. Something that is not needed for just reading power.
- platform: mqtt
name: "Poolhouse 4pro10A Electrolyse Power"
state_topic: "shellies/shelly4pro-4D011E/relay/2/power"
unit_of_measurement: W
value_template: "{{ value|round(2) }}"
qos: 1
icon: mdi:gauge