Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonOff Pow r2 with tasmota Power/Sensor support #38

Open
pizzulicchio opened this issue Feb 12, 2021 · 1 comment
Open

SonOff Pow r2 with tasmota Power/Sensor support #38

pizzulicchio opened this issue Feb 12, 2021 · 1 comment

Comments

@pizzulicchio
Copy link

Hi,
i'm using your plugin with domoticz and it seems to work for switch but it's not be able to retreive values form the sensors.
I have enable Option19 on my sonoff pow r2 but all various power meter elemets are missing.
This is the output of tasmota console:

14:44:36 MQT: VLADI/Cucina/Switch/SonOffPowForno/stat/RESULT = {"SetOption19":"ON"}
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_Power/config = {"name":"SonOffPowForno ENERGY Power","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_Power","dev":{"ids":["7FFFF9"]},"unit_of_meas":"W","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Power']}}"} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_ApparentPower/config = {"name":"SonOffPowForno ENERGY ApparentPower","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_ApparentPower","dev":{"ids":["7FFFF9"]},"unit_of_meas":"VA","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['ApparentPower']}}"} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_ReactivePower/config = {"name":"SonOffPowForno ENERGY ReactivePower","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_ReactivePower","dev":{"ids":["7FFFF9"]},"unit_of_meas":"VAr","dev_cla":"power","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['ReactivePower']}}"} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_Factor/config = {"name":"SonOffPowForno ENERGY Factor","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_Factor","dev":{"ids":["7FFFF9"]},"unit_of_meas":"Cos φ","ic":"mdi:alpha-f-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Factor']}}"} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_Voltage/config = {"name":"SonOffPowForno ENERGY Voltage","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_Voltage","dev":{"ids":["7FFFF9"]},"unit_of_meas":"V","ic":"mdi:alpha-v-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Voltage']}}"} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_ENERGY_Current/config = {"name":"SonOffPowForno ENERGY Current","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"7FFFF9_ENERGY_Current","dev":{"ids":["7FFFF9"]},"unit_of_meas":"A","ic":"mdi:alpha-a-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Current']}}"} (retained)
14:44:36 MQT: homeassistant/switch/7FFFF9_RL_1/config = {"name":"SonOffPowForno","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/STATE","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","cmd_t":"VLADI/Cucina/Switch/SonOffPowForno/cmnd/POWER","val_tpl":"{{value_json.POWER}}","pl_off":"OFF","pl_on":"ON","uniq_id":"7FFFF9_RL_1","dev":{"ids":["7FFFF9"]}} (retained)
14:44:36 MQT: homeassistant/sensor/7FFFF9_status/config = {"name":"SonOffPowForno status","stat_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/HASS_STATE","avty_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attr_t":"VLADI/Cucina/Switch/SonOffPowForno/tele/HASS_STATE","unit_of_meas":"%","val_tpl":"{{value_json['RSSI']}}","ic":"mdi:information-outline","uniq_id":"7FFFF9_status","dev":{"ids":["7FFFF9"],"name":"SonOffPowForno","mdl":"Sonoff Pow R2","sw":"9.1.0(tasmota)","mf":"Tasmota"}} (retained)
14:44:43 MQT: VLADI/Cucina/Switch/SonOffPowForno/tele/STATE = {"Time":"2021-02-12T14:44:43","Uptime":"19T02:41:47","UptimeSec":1651307,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":19,"POWER":"ON","Wifi":{"AP":2,"SSId":"VLADI","BSSId":"B4:FB:E4:C7:65:08","Channel":1,"RSSI":100,"Signal":-36,"LinkCount":8,"Downtime":"0T00:00:35"}}
14:44:43 MQT: VLADI/Cucina/Switch/SonOffPowForno/tele/SENSOR = {"Time":"2021-02-12T14:44:43","ENERGY":{"TotalStartTime":"2021-01-01T15:14:55","Total":5.760,"Yesterday":0.005,"Today":0.005,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":236,"Current":0.000}}

What am i missing?

@altserg
Copy link
Contributor

altserg commented Dec 15, 2021

You can have a look at my latest pull request that adds basic Temperature and Humidity sensor support. Note that if you have only one sensor, you can configure it in Domoticz menu of Tasmota

Example configuration for SmartSocket:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants