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 TRVZB Schedule (composite) entity state is too long for HA #23199

Open
markxroberts opened this issue Jun 29, 2024 · 3 comments
Open

Sonoff TRVZB Schedule (composite) entity state is too long for HA #23199

markxroberts opened this issue Jun 29, 2024 · 3 comments
Labels
problem Something isn't working

Comments

@markxroberts
Copy link

What happened?

Repeated errors in HA logs because the entity state is too long

2024-06-28 01:15:56.348 WARNING (MainThread) [homeassistant.components.mqtt.sensor] Invalid state message '{'friday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'monday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'saturday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'sunday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'thursday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'tuesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'wednesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16'}' from 'zigbee2mqtt/Utility radiator'

What did you expect to happen?

Perhaps split in to multiple entities

How to reproduce it (minimal and precise)

Pair valve, state message rejected.

Zigbee2MQTT version

1.38.0

Adapter firmware version

zStack3x0 20220219 and ConBee2/RaspBee2 0x26780700

Adapter

Sonoff ZB-Dongle-P and ConBee2

Setup

Container on Debian VM / AMD Ryzen processor

Debug log

No response

@markxroberts markxroberts added the problem Something isn't working label Jun 29, 2024
@fir3drag0n
Copy link

Same problem here

@michelbalzer
Copy link

michelbalzer commented Jul 4, 2024

Maybe related to #19788 #home-assistant/core#103141 and #16460?

I have this messages:

Invalid state message '{'friday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'monday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'saturday': '00:00/17 08:00/21 12:00/17 14:00/20 18:00/17 18:00/17', 'sunday': '00:00/17 08:00/21 12:00/17 14:00/20 18:00/17 18:00/17', 'thursday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'tuesday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'wednesday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17'}' from 'zigbee2mqtt/Kinderzimmer Thermostat'```

```log
Cannot update state for entity sensor.kinderzimmer_thermostat_weekly_schedule after processing payload on topic zigbee2mqtt/Kinderzimmer Thermostat. The requested state (477) exceeds the maximum allowed length (255). Fall back to unknown, failed state: {'friday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'monday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'saturday': '00:00/17 08:00/21 12:00/17 14:00/20 18:00/17 18:00/17', 'sunday': '00:00/17 08:00/21 12:00/17 14:00/20 18:00/17 18:00/17', 'thursday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'tuesday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17', 'wednesday': '00:00/17 07:30/21 09:00/17 14:00/20 18:00/17 18:00/17'}```

@bchhabra
Copy link

bchhabra commented Jul 4, 2024

same problem on z2m 1.38.0.

Logger: homeassistant.components.mqtt.sensor
Source: components/mqtt/sensor.py:265
integration: MQTT (documentation, issues)
First occurred: 7:44:21 PM (1 occurrences)
Last logged: 7:44:21 PM
Invalid state message '{'friday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'monday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'saturday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'sunday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'thursday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'tuesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'wednesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16'}' from 'zigbee2mqtt/Office Trv'

Cannot update state for entity sensor.office_trv_weekly_schedule after processing payload on topic zigbee2mqtt/Office Trv. The requested state (477) exceeds the maximum allowed length (255). Fall back to unknown, failed state: {'friday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'monday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'saturday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'sunday': '00:00/16 07:00/19 10:00/19 10:00/19 10:00/19 23:00/16', 'thursday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'tuesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16', 'wednesday': '00:00/16 07:00/19 10:00/16 10:00/16 17:00/19 23:00/16'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants