I am trying to create a generic value sensor and I see the multi states and battery updating, so I knows its reading the message, but I cant find the right value for the Payload Key field as its a nested json message. I want the sensor to show the value in thermostats.pos. is 4.7 below from the debug.
- Code: Select all
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: wifi_sta, {'connected': True, 'ssid': 'CCIoT', 'ip': '192.168.0.221', 'rssi': -76}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: cloud, {'enabled': True, 'connected': True}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: mqtt, {'connected': True}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: time, 13:00, <class 'str'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: unixtime, 1673874001, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: serial, 76, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: has_update, True, <class 'bool'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: mac, 2C1165DABA8B, <class 'str'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: cfg_changed_cnt, 0, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: actions_stats, {'skipped': 0}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: thermostats, [{'pos': 4.7, 'target_t': {'enabled': True, 'value': 24.5, 'value_op': 8.0, 'units': 'C'}, 'tmp': {'value': 22.6, 'units': 'C', 'is_valid': True}, 'schedule': True, 'schedule_profile': 1, 'boost_minutes': 0, 'window_open': False}], <class 'list'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: calibrated, True, <class 'bool'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: bat, {'value': 100, 'voltage': 4.144}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: charger, False, <class 'bool'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: update, {'status': 'unknown', 'has_update': True, 'new_version': '20220811-152343/v2.1.8@5afc928c', 'old_version': '20220720-094550/v2.1.7@f9b0e22f', 'beta_version': None}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: ram_total, 97280, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: ram_free, 30584, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: fs_size, 65536, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: fs_free, 59292, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: uptime, 6108, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: fw_info, {'device': 'shellytrv-2C1165DABA8B', 'fw': '20220720-094550/v2.1.7@f9b0e22f'}, <class 'dict'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: ps_mode, 0, <class 'int'>
MQTT Shims Debug Shelly Dining TRV Valve copy: adding to states_list: dbg_flags, 0, <class 'int'>
tried lots in last 2 hours and no joy.
thanks
Simon