domoticz / domoticz

Open source Home Automation System
http://www.domoticz.com
GNU General Public License v3.0
3.47k stars 1.12k forks source link

Suggestion: add notification for "General, Text" sensors #6124

Closed JannemanDev closed 2 months ago

JannemanDev commented 2 months ago

I have a sensor type "General, Text" that shows the current status of the PV system, possible values are for example "Normal", "Offline", "Error" etc. I want a notification when Text is not equal to "Normal". Currently "Notifications' button for sensors are only available/possible when it has a numeric value like a sensor for "Temperature".

image

gizmocuz commented 2 months ago

You can use dzVents for this

waltervl commented 1 month ago

@JannemanDev I use the GoodweSEMS python plugin https://github.com/janjaapko/domoticz-GoodWeSEMS where the inverter state is a selector switch. So you can be notified on that with standard notify options. Perhaps you can also change this to a selector switch in your integration.

JannemanDev commented 1 month ago

@JannemanDev I use the GoodweSEMS python plugin https://github.com/janjaapko/domoticz-GoodWeSEMS where the inverter state is a selector switch. So you can be notified on that with standard notify options. Perhaps you can also change this to a selector switch in your integration.

thanks for your reply. I personally prefer more the other plugin that directly reads the inverter (locally within my LAN), without relying on external sems portal api and its rate limit and potential availability issues.

waltervl commented 1 month ago

I understand. You can ask the plugin author to change the status device from text to a selector switch. Or do it yourself....

JannemanDev commented 1 month ago

I understand. You can ask the plugin author to change the status device from text to a selector switch. Or do it yourself....

already done it myself: https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/pull/10#issue-2405790868

waltervl commented 1 month ago

I personally would not have made it a Custom Sensor. A selector switch would have been better.