I’m an happy Home Assistant user for a while. A lot of issues has been resolved by searching topics in this community but it seems I need a bit help now with a - for me - more advanced topic.
I’ve been able to retrieve modbus data by adding the following lines to configuration.yml:
My goal is (maybe a bit unusual) to write sensordata from Home Assistant to my external modbus. I’ve looking into the documentation and some similar questions but I can’t find the right solution. I’m not looking for a static number to write to a modbus address, but a value from a Home Assistent sensor/entity (like a temperature). Is there anyone who did something similar and can help me with a direction?
Try calling this from developer tools / services. Once you have that working and writing to the correct location, the create an automation that uses the sensor value in a data_template to call the service.
Thanks for your reply! I’ve looked into that specific part of the documentation, but I wasn’t able to convert it into a practical working piece of configuration. If there’s anyone with an example who tried something familiar, that would be awesome. In the meanwhile I’ll proceed with the documentation and your suggestion about the dev tools / services.
Hey,
could you post here how you did it? I solved the same thing with a Jablotron Futura recuperation system. I need to write the CO2 value from an external sensor. Thank you
I want to connect mu solax inverter to home assistant using modbus. And i want to be able to send the digital meter data i have in home assistant to solax , is this possible?
This is still in the trial stage, so all values to be written are inputs.
By the way there is a principal weakness in HA, more so for modbus. If a relay board loses power for a short time, all relays are off but HA assumes them to be on and displays them as such. For a sensor outages don’t bother as much, when it comes back on values resume. But it fails with outputs that are only set once. So rather than switching something on once it’s better to set a variable “this should be on” and outputting that variable in a fixed time raster. This is what my last example does reliably.