https://github.com/WoLpH/eventghost-dom ... es/tag/0.2
Thanks, that already works fairly well. But you're right that the event suffix needs to be a bit more advanced to be usable. At the very least it should include the idx but probably the value as well. I'll think a bit about clean solution. Your plugin is definitely very useful, great work!krambriw wrote:Hello,
So I made a first testing version following the json structure you provided. It has a dependency that the word 'domoticz' must be found in the msg.topic in messages from domoticz Typically you will receive the following events for Domoticz where now only the values are kept
Based on this you could create a macro structure and extract whatever values from the list in the payload using simple python scripts If you think we need a more specific event suffix to be able to directly trigger individual actions on state changes without using python scripts it can easily be made. Like for instanceCode: Select all
09:17:08 MQTT./1wire/domoticz/Light/Switch [255, 12, 'Light/Switch', '00001201', 195, 'licht bureaus', 2, 'Switch', '68', 'Dimmer', 1] 09:17:08 MQTT./1wire/domoticz/General [255, 12, 'General', '00000701', 78, 'kWh pc media', 0, 'kWh', '226.200', '654594.750', 1]
MQTT./1wire/domoticz/Light/Switch/On/Off/57/0
and
MQTT./1wire/domoticz/Light/Switch/On/Off/57/1
BR Walter
