arjenhiemstra / ithowifi

Itho wifi add-on module (ESP32 wifi to itho I2C protocol)
GNU General Public License v3.0
170 stars 29 forks source link

Homey fanspeed insights #258

Open Mexxwelll opened 3 weeks ago

Mexxwelll commented 3 weeks ago

Describe the bug I use Homey to control the ithowifi device, and want to add the fanspeed Insights. But i receive the following error: Cannot assign to read only property 'topics' of object '#

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'Homey'
  2. Click on 'Ihto device'
  3. Scroll down to 'Topics'

{ "dim": { "capability": "dim", "stateTopic": "homie/homey/mechanische-ventilatie/state", "setTopic": "homie/homey/mechanische-ventilatie/cmd", "valueTemplate": "round((value / 255) 100)", "outputTemplate": "round((value / 100) 255)", "displayName": "Dim level" }, "measure_temperature": { "capability": "measure_temperature", "stateTopic": "homie/homey/mechanische-ventilatie/ithostatus", "setTopic": "", "valueTemplate": "$['temp']", "outputTemplate": "", "displayName": "Temperature" }, "measure_humidity": { "capability": "measure_humidity", "stateTopic": "homie/homey/mechanische-ventilatie/ithostatus", "setTopic": "", "valueTemplate": "$['hum']", "outputTemplate": "", "displayName": "Humidity" }, "measure_fanspeed": { "capability": "measure_fanspeed", "stateTopic": "homie/homey/mechanische-ventilatie/ithostatus", "setTopic": "", "valueTemplate": "$['Fan speed (rpm)']", "outputTemplate": "", "displayName": "Fanspeed" } }

  1. See error: Cannot assign to read only property 'topics' of object '#

This config is working fine: { "dim": { "capability": "dim", "stateTopic": "homie/homey/mechanische-ventilatie/state", "setTopic": "homie/homey/mechanische-ventilatie/cmd", "valueTemplate": "round((value / 255) 100)", "outputTemplate": "round((value / 100) 255)", "displayName": "Dim level" }, "measure_temperature": { "capability": "measure_temperature", "stateTopic": "homie/homey/mechanische-ventilatie/ithostatus", "setTopic": "", "valueTemplate": "$['temp']", "outputTemplate": "", "displayName": "Temperature" }, "measure_humidity": { "capability": "measure_humidity", "stateTopic": "homie/homey/mechanische-ventilatie/ithostatus", "setTopic": "", "valueTemplate": "$['hum']", "outputTemplate": "", "displayName": "Humidity" } }