Thanks so much for all the help in this thread.
I recently installed the 20240229 - Mega with the
Communication - Serial Server to read data from my P1 port.
Domoticz has direct access to this communication serial server, but I also wanted a second controller (Homeassistant) to be able to see the data.
By putting the
Communication - Serial Server Event Processing on 'Generic' and adding the rule:
Code: Select all
on !Serial* do // Include * to process string values
PublishR,ESP_Easy/%sysname%/P1,%eventvalue%
endon
All the data is now shown by my MQTT broker and Homeassistant is able to retrieve data from it.
has been recently added to Publish with Retain, however this seems not to work for !serial but does work for other mqtt messages that is publish.
To process it I only needed to create some interpretation rules.
https://github.com/sincze/Homeassistant ... nergy.yaml