Hello all,
I have been looking for a solution for the last two days to my problem and I’m getting crazy. Any hint or solution will be appreciated.
I have developed a solution for an irrigation system for my garden. I used this tutorial that perfectly match to what I was preparing. Thanks Hugo for writing it!
Small and simple irrigation solution - OH3
Now I have one thing and multiple channels defined from the OH3 UI, and the group and items defined in a text file. I also prepared a sitemap to switch open/close the valves.
Almost all is working as expected with one exception:
I have a channel to read and post through MQTT the max time for rainning.
The reads work well with the defined “stateTopic”, and it updates the item state.
But… when I update the item state with another amount of seconds, it does not trigger the corresponding MQTT Command Topic to inform tasmota.
Any hint about what could it be? Anything to try from my side?
I post here, partially, the configuration.
thing and channel:
channels:
- id: huertot
channelTypeUID: mqtt:string
label: Huerto Tiempo
configuration:
commandTopic: cmnd/riego/PulseTime1
postCommand: false
formatBeforePublish: “%s”
stateTopic: stat/riego/RESULT
transformationPattern: REGEX:(.Set.)∩JSONPATH:$.PulseTime1.Set∩JS:minus100.js
item
Number n_Huerto_DuraH (g_Huerto) {channel = “mqtt:topic:mosquitto:riego:huertot” , homekit = “Valve.Duration” [homekitDefaultDuration = 300] }
I can update the item state from the sitemap or even from a script. Same result. Command not triggered. Mosquitto is not receiving it.
Here’s a portion of the test script I’m using:
n_Huerto_DuraH.postUpdate(60)
sw_Huerto.postUpdate(ON)
Again, any hint that helps me to troubleshoot the issue or tells me how to fix it is welcome.
Thans for your time reading this topic.