Please read carefully documentation for HA. https://www.home-assistant.io/integrations/mysensors/
You need to send initial state of your sensors. There is example code for doing it. Basically you check in loop if the node just started and send some values to HA. After that your sensor will appear in HA.
Hello,
finally, ... I had time to test the "Option 2".
Because the stock of all shops are empty, I used my old RPI 3 B+. But after all, the CPU runs at 50%. Even the 1 GB ram is half free.
The way wasn't as easy as I thought. But now the setup runs pretty good.
This steps I had to make:
A fresh install of Raspian Lite (I used 64-Bit, if this is needed? I dont know)
Installed "Home Assistant Supervised", which runs in a docker. (I found a tutorial based on this informations: https://github.com/home-assistant/supervised-installer)
Installed the MySensors Gateway with some changes! (https://www.mysensors.org/build/raspberry)
3b. The manual works fine for 32 Bit raspbian. For 64 Bit you have to edit two files bevor the compile starts. (https://forum.mysensors.org/topic/11456/is-mysensors-rpi-gw-32bit-only/8)
In my case i have to change the section for the BCM2837 (= RPI3) as described in the post.
Now, I have a clean setup for my smarthome with MySensors Nodes and Zigbee Nodes.
The RFM69 ist directly connected to the GPIO of the PI.
The power consumption is araound 2 W. Somewhat lower when idle.
Thanks for the response. Can you be more specific about how to request the status from the node?
My understanding is the request format is:
request (Child_ID, VariableType);
But if the Home Assistant entity that I want to request the status of is not a MySensors entity it will not have a Child_ID. So how do I format the request statement?
Thank.
This is what I do for the receive :
So, I'm now able to SET a VALUE from HA.
And after a pulse it is updated
My question is most about how to use HA to do it more easily as possible.
Do you think possible to use an TEXT object which can be sent to node through the MQTT ?
Second question : how do you send value to the node (MQTT or other ?)
Hi, friend!
He also became interested in the Home Assistant system, but was upset by the lack of support OTA.
I use a system Majordomo for MySensors devices and my Ethernet-RS485 gateways are based on ENC28J60.
And I found such an idea for myself - to implement a proxy for the TCP protocol in order to implement a parallel connection to the gateway of two systems at the same time.
I tested this solution and it turned out to work - I was able to flash via OTA , while simultaneously receiving data in Home Assistant.
Perhaps this idea will be of interest to you.