stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

provide real postion on manual operation #92

Closed ihavenonick closed 5 years ago

ihavenonick commented 5 years ago

Could you please put the real position in this fork? Or briefly describe how I can do it myself?

In the console, it is output, so the value is also known and I would like as a data point (DP) in IOBroker among the objects in the Sonoff adapter.

Console output with manual operation:

17:12:32 MQT: stat/sonoff/POWER2 = ON
17:12:33 Shutter 0: Real Pos: 31100, Target 0, source: Shutter, start-pos: 100 %, direction: -1, rtcshutter: 0.5 [s]
17:12:33 CFG: in Flash gespeichert am FA, zählen 90, Bytes 3824
17:12:34 Shutter 0: Real Pos: 29100, Target 0, source: Shutter, start-pos: 100 %, direction: -1, rtcshutter: 1.5 [s]
17:12:34 SRC: WebGui from 192.168.100.2
17:12:34 Switched relay: 2 by I
17:12:34 Shutter 0: Switch OFF motor. Target: 29100, source: I, powerstate_local 0, switchedRelay 2, manual change 1
17:12:34 Shutter 0: Target: 29100, powerstatelocal 0
17:12:34 MQT: stat/sonoff/RESULT = {"POWER2":"OFF"}
17:12:34 MQT: stat/sonoff/POWER2 = OFF
17:12:34 Shutter 0: Real Pos. 28700, Stoppos: 89, relay: 1, direction -1, pulsetimer: 0, rtcshutter: 1.7 [s], operationtime 1
**17:12:34 MQT: stat/sonoff/SHUTTER1 = 89**
17:12:34 CFG: in Flash gespeichert am F9, zählen 91, Bytes 3824
17:12:36 HTP: Konsole
stefanbode commented 5 years ago

As younalready highlighted the value will already be published to the MQTT broker. After this it is the job of iobroker to generate a data point for it. I would ask in the forum how you can add SHUTTER1 to the definition file. In have no idea about this. This is not a tasmota issue

ihavenonick commented 5 years ago

OK, I asked in the forum, but received no response.