I flashed Espurna on a Sonoff Touch T2 (R2 with 433MHz option). This software has everything that the switch works as a standalone shutter switch.
However, I have problems now to integrate it into pimatic. Has anyone done this before? Are there any instructions?
My knowledge of using mqtt is limited. I always need a template.
I found something here, but I don’t really understand it… maybe someone can explain it to me.
https://bitbucket.org/xoseperez/espurna/wiki/RESTAPI.md
-
Sonoff T2 with Espurna how to in Pimatic?
-
@strato345 maybe this can be implemented by the use of a shellswitch, like I’m using to switch a SonoffRF. Have a look at this post: https://forum.pimatic.org/topic/4057/sonoff-mit-tasmota-in-pimatic-einbinden/3
so your curl commands have to be modified to something like this for the shell-switch:
- xxx.xxx.x.xx = IP-adress of Sonoff
- yyyyyyyyyyyyyyyy = your API-Key of Sonoff
OnCommand
curl --silent "http://xxx.xxx.x.xx/api/relay/0?apikey=yyyyyyyyyyyyyyyy&value=1"
Try to execute this from the console of your raspberry before you go over to implement it as a shell switch.