MyStrom has just added a temperature sensor to the new version of the switch.
Can someone implement it?
Here is the tweet with the announcement:
MyStrom has just added a temperature sensor to the new version of the switch.
Can someone implement it?
Here is the tweet with the announcement:
Hi everyone, how’s the stand here? Would it be possible to integrate the temperature? Would be great if that worked.
I’m looking also forward to this. Can someone implement this? I don’t know the code but it’s probably done with REST-API of mystrom switch. for temperatur it would look like this:
http://[IP]/temp
Response
{
"measured": 43.562500,
"compensation": 21,
"compensated": 22.562500
}
I added a change for temperature support to the module in March already. I don’t own a WiFi Switch V2 thus I’m not able to test it.
According to the posted data it would require an update.
did you commit this to repo in github? can see any code for temp in github.
There is an open PR
I am using a generic REST call as a workaround:
# Power meters (myStrom)
# Using the generic REST platform instead of myStrom due to issues with the myStrom platform itself
sensor:
- platform: rest
resource: http://[mystrom_ip]/report
value_template: "{{ value_json.power | round(1) }}"
name: "MyStrom Temperature"
unit_of_measurement: W
Replace [mystrom_ip]
with the ip address of your device.
Temperature is confirmed to works on Hardware v2.