Jump to content

Script to trigger SHELLY with MQTT values in a topic


Recommended Posts

Hi,

I started some SHELLY installation at home, it works pretty fine so far.

Now I would like to trigger a Plug S according to values I get from a MQTT topic I subscribe to.
I have solar panels and battery (Zendure, connected to my SHELLY Pro 3EM) that I can get the power generated by the solar panels and the % of storage in the battery from a MQTT topic I can subscribe (checked with MQTT Explorer and it works).

I would like to switch the Plug S on if the power generated is above a threshold and/or if the % of the battery is close to 80-85%.
I cannot get the power generated anyway else as it is fully controlled by the Zendure system especially the % of the battery (I see the values in the Zendure App) and it is in DC current with only solar cables between the panels and the Zendure controler so no SHELLY PM can be connected somewhere inside.

Is it possible with just a script or do I need another service ? (I don't have a home automation server like Home Assistant and for the time being I would prefer not building one ^^)

Thanks in advance for your help !

Link to comment
Share on other sites

  • Integrators

This is above my knowledge at the moment. Interesting use case I'm sure someone here might have more information about how to do it 

Link to comment
Share on other sites

On 5/2/2024 at 11:14 AM, AlexisH said:

Hi,

I started some SHELLY installation at home, it works pretty fine so far.

Now I would like to trigger a Plug S according to values I get from a MQTT topic I subscribe to.
I have solar panels and battery (Zendure, connected to my SHELLY Pro 3EM) that I can get the power generated by the solar panels and the % of storage in the battery from a MQTT topic I can subscribe (checked with MQTT Explorer and it works).

I would like to switch the Plug S on if the power generated is above a threshold and/or if the % of the battery is close to 80-85%.
I cannot get the power generated anyway else as it is fully controlled by the Zendure system especially the % of the battery (I see the values in the Zendure App) and it is in DC current with only solar cables between the panels and the Zendure controler so no SHELLY PM can be connected somewhere inside.

Is it possible with just a script or do I need another service ? (I don't have a home automation server like Home Assistant and for the time being I would prefer not building one ^^)

Thanks in advance for your help !

In 2-3 weeks Zendure will be supported in Shelly APP same as other Shelly devices. Then you can have scene which do exactly as you want. 

  • Like 3
Link to comment
Share on other sites

  • Administrators

@Dimitar

 

Because of Zendure and the cooperation with Shelly.
Are there already tutorials or experience reports about the interaction with zendure, especially the battery storage and the possibility of zero feed-in.

I'm also very interested, but unfortunately I haven't had the opportunity to gain experience yet 🙂

Link to comment
Share on other sites

@Dimitar Thanks a lot for this info !
If Zendure equipment can be added to the Shelly Control App and we can get conditions on some values like the Solar Input Power, Battery State of Charge, Battery Output Power that would be awesome !

I'm gessing some others might want to configure switching on the swimming pool pump or even the water boiler depending on the values given by the Zendure system.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...