I plan for some time now to use a small LCD screen to display information. It would be nice to integrate this via MySensors and reuse the hardware I already have set up. Exposing a notify service in HA would be a perfect match for that.
Does anybody have any hint on where to start?
If I'm understanding correctly, @sundberg84's project is too amazing compared to what I'm trying to achieve I already have a controller running (Home Assistant), I'm just looking for a way to forward notifications from this controller to a MySensors node. Home Assistant as this service called
notify, with multiple implementations (XMPP, Pushbullet…). A nice way to achieve what I want would be to create a
notifyimplementation working in pair with MySensors, by pushing an arbitrary text to a specific node.
However, I never wrote any Home Assistant components, so I'm absolutely not sure on where to start. And there may be a "standard" way to push text to a node on MySensors, but I didn't find any. I'll be happy to work on this once I have a pretty much clear idea on what to do or not, but… it's not the case right now, hence this discussion
@kernald MySensors has a standard way. It is called V_TEXT, and that's what sundberg84 is using. It is not a notification though, it is a sensor sub-type.
I can't find anything regarding
V_TEXTin the documentation. Is this something planned for v2?
drock1985 last edited by
You might be able to get away with S_CUSTOM and V_VAR instead..... not sure if that would work or not.
Yes it is planned for v2 but you can add it to MySesnors 1.5 quite easily. Instructions are available at https://forum.mysensors.org/topic/1957/lcd-clock-and-text-sensor-node-with-new-v_text/2
@mfalkvidd Awesome, thanks. Now, I just need to figure how the Home-Assistant platform works!
Home assistant uses pymysensors to interface with mysensors. S_INFO/V_TEXT should be added along side the other new types in a const_20 module. I have a branch for this already that I can push. We will need to bump version on pymysensors also and use this version in your branch for home assistant.
Then you will be able to use those types to setup a mysensors notify platform. You can look at how the other mysensors platforms are setup.