Hi all,
Just have flashed a relay board with PSF-A85 chip to Tasmota and configured a template to assign GPIO pins to switches. I’m struggling with the correct syntax to add to my Thing’s channel so I can track the state of the GPIO pins.
I’ve read the Tasmota doc’s but it’s not clear to me…Running MQTT Explorer as below I can see the status is reporting each 5minutes but how do I setup my channel to track this status?
Hi Rossko,
Yes I have a MQTT based Items working and use cmnd/Garage_Door/POWER to successfully activate a relay, so sound slike I’m just missing understanding the way to extract multiple channels using JSONPATH?
Thanks tht helps a bit… I’m trying to keep in Paper UI, but with these examples I’ve managed to get the full array presenting in Paper UI. Now just trying to present the state of individual elements ie: Switch 3, but REGEX doesn’t seem to work for me, documentation on is has no examples within Paper UI?
Here’s my log showing items I’m trying to breakout and present:
Since last post I had moved the REGEX statement to Transformation line as was part of status command line before, now logs as above don’t seem to even attempt REGEX component?
That all seems to be doing what you told it to do.
Have you given up using JSONPATH now?
You might want to click the “more” under Incoming Value transformation
You probably need to show us what you’ve done now, then. I don’t know what a status command line is in this context.
I’d be happy using anything that works to extract the state of if switch on a GPIO Pin, unfortunately I’m not a programmer and JSON and REGEX are completely new to me.
I did have the MQTT State Topic as cmnd/Garage_Door/SENSOR:REGEX:((.),.,.,.,.,.,.*) when it was complaining about REGEX no being present yet it’s installed.
Would it be possible to have an example of the correct syntax for MQTT Stat Topic and Incoming value transformation that I could try to extract the status of Switch3? This would help me get my head (hopefully) around JSON a bit more, currently I read info on JSON but it’s not making sense to a simpleton like me! Thanks for taking the time to help with this!