2 |
DENIED
|
moderate
|
App\Entity\Entry {#1813
+user: Proxies\__CG__\App\Entity\User {#1896 …}
+magazine: App\Entity\Magazine {#285
+icon: Proxies\__CG__\App\Entity\Image {#265 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#298
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#256 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#252 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#241 …}
+entries: Doctrine\ORM\PersistentCollection {#199 …}
+posts: Doctrine\ORM\PersistentCollection {#157 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#219 …}
+bans: Doctrine\ORM\PersistentCollection {#136 …}
+reports: Doctrine\ORM\PersistentCollection {#122 …}
+badges: Doctrine\ORM\PersistentCollection {#100 …}
+logs: Doctrine\ORM\PersistentCollection {#90 …}
+awards: Doctrine\ORM\PersistentCollection {#79 …}
+categories: Doctrine\ORM\PersistentCollection {#66 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#301
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#297
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1888 …}
+slug: "Getting-a-bunch-of-errors"
+title: "Getting a bunch of errors"
+url: null
+body: """
Everything was working okay, but suddenly I’m getting a bunch of errors from my thermostat and I’m unable to set temperature or anything\n
\n
```\n
\n
<span style="color:#323232;">Source: helpers/entity.py:1125\n
</span><span style="color:#323232;">First occurred: 5 January 2024 at 22:20:54 (4 occurrences)\n
</span><span style="color:#323232;">Last logged: 08:35:01\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">Failed to set state for sensor.0x003c84fffef2dac7_program, fall back to unknown\n
</span><span style="color:#323232;">Traceback (most recent call last):\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1125, in _async_write_ha_state\n
</span><span style="color:#323232;"> hass.states.async_set(\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1831, in async_set\n
</span><span style="color:#323232;"> state = State(\n
</span><span style="color:#323232;"> ^^^^^^\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1408, in __init__\n
</span><span style="color:#323232;"> validate_state(state)\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 228, in validate_state\n
</span><span style="color:#323232;"> raise InvalidStateError(\n
</span><span style="color:#323232;">homeassistant.exceptions.InvalidStateError: Invalid state with length 934. State max length is 255 characters.\n
</span>\n
```\n
\n
I’ve looked in Z2M and its exposing\n
\n
```\n
\n
<span style="color:#323232;">{\n
</span><span style="color:#323232;"> "child_lock": "UNLOCK",\n
</span><span style="color:#323232;"> "current_heating_setpoint": 15,\n
</span><span style="color:#323232;"> "heat": "OFF",\n
</span><span style="color:#323232;"> "linkquality": 224,\n
</span><span style="color:#323232;"> "local_temperature": 14.5,\n
</span><span style="color:#323232;"> "local_temperature_calibration": -2,\n
</span><span style="color:#323232;"> "max_temperature": 45,\n
</span><span style="color:#323232;"> "min_temperature_limit": 5,\n
</span><span style="color:#323232;"> "preset": "hold",\n
</span><span style="color:#323232;"> "preset_mode": "hold",\n
</span><span style="color:#323232;"> "program": {\n
</span><span style="color:#323232;"> "saturday_p1_hour": 6,\n
</span><span style="color:#323232;"> "saturday_p1_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "saturday_p2_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p2_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "saturday_p3_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p3_minute": 30,\n
</span><span style="color:#323232;"> "saturday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "saturday_p4_hour": 20,\n
</span><span style="color:#323232;"> "saturday_p4_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "sunday_p1_hour": 6,\n
</span><span style="color:#323232;"> "sunday_p1_minute": 0,\n
</span><span style="color:#323232;"> "sunday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "sunday_p2_hour": 12,\n
</span><span style="color:#323232;"> "sunday_p2_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "sunday_p3_hour": 14,\n
</span><span style="color:#323232;"> "sunday_p3_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "sunday_p4_hour": 18,\n
</span><span style="color:#323232;"> "sunday_p4_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "weekdays_p1_hour": 6,\n
</span><span style="color:#323232;"> "weekdays_p1_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p1_temperature": 14,\n
</span><span style="color:#323232;"> "weekdays_p2_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p2_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p2_temperature": 16,\n
</span><span style="color:#323232;"> "weekdays_p3_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p3_minute": 30,\n
</span><span style="color:#323232;"> "weekdays_p3_temperature": 15,\n
</span><span style="color:#323232;"> "weekdays_p4_hour": 20,\n
</span><span style="color:#323232;"> "weekdays_p4_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p4_temperature": 12\n
</span><span style="color:#323232;"> },\n
</span><span style="color:#323232;"> "running_state": "idle",\n
</span><span style="color:#323232;"> "sensor": "AL",\n
</span><span style="color:#323232;"> "system_mode": "heat",\n
</span><span style="color:#323232;"> "deadzone_temperature": null,\n
</span><span style="color:#323232;"> "max_temperature_limit": null\n
</span><span style="color:#323232;">}\n
</span>\n
```\n
\n
The log is showing this\n
\n
![](https://lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)\n
\n
Any idea on what’s gone wrong?\n
\n
Edit: Since I had to reinstall Raspberry Pi OS anyway, I just decided to start again. Hopefully adding the thermostat to HA anew will fix it.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 0
+favouriteCount: 2
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1704537741 {#1830
date: 2024-01-06 11:42:21.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1887 …}
+votes: Doctrine\ORM\PersistentCollection {#1950 …}
+reports: Doctrine\ORM\PersistentCollection {#2425 …}
+favourites: Doctrine\ORM\PersistentCollection {#1903 …}
+notifications: Doctrine\ORM\PersistentCollection {#1898 …}
+badges: Doctrine\ORM\PersistentCollection {#1904 …}
+children: []
-id: 28221
-titleTs: "'bunch':3 'error':5 'get':1"
-bodyTs: "'-2':135 '/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':315 '/usr/src/homeassistant/homeassistant/core.py':72,81,90 '/usr/src/homeassistant/homeassistant/helpers/entity.py':61 '0':156,168,192,204,252,264,288 '01':44 '08':42 '1125':28,63 '12':196,212,244,292 '14':160,208,224,256 '14.5':131 '1408':83 '15':124,184,232,280 '16':172,220,268 '18':236 '1831':74 '20':36,188,284 '2024':33 '22':35 '224':128 '228':92 '255':108 '30':180,216,228,240,276 '35':43 '4':38 '45':138 '5':31,142 '54':37 '6':152,200,248 '8':164,176,260,272 '934':103 'ad':340 'al':297 'anew':345 'anyth':25 'anyway':332 'async':65,76 'back':52 'bunch':11 'calibr':134 'call':58 'charact':109 'child':118 'current':121 'deadzon':301 'decid':335 'edit':323 'error':13 'everyth':1 'expos':117 'fail':45 'fall':51 'file':60,71,80,89 'first':29 'fix':347 'get':9 'gone':321 'ha':67,344 'hass.states.async':69 'heat':122,125,300 'helpers/entity.py':27 'hold':144,147 'homeassistant.exceptions.invalidstateerror':98 'hope':339 'hour':151,163,175,187,199,211,223,235,247,259,271,283 'idea':317 'idl':295 'init':85 'invalid':99 'invalidstateerror':97 'januari':32 'last':40,59 'lemmy.tf':314 'lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':313 'length':102,106 'limit':141,306 'line':62,73,82,91 'linkqual':127 'local':129,132 'lock':119 'log':41,309 'look':112 'm':8,19 'max':105,136,304 'min':139 'minut':155,167,179,191,203,215,227,239,251,263,275,287 'mode':146,299 'null':303,307 'occur':30 'occurr':39 'okay':4 'os':331 'p1':150,154,158,198,202,206,246,250,254 'p2':162,166,170,210,214,218,258,262,266 'p3':174,178,182,222,226,230,270,274,278 'p4':186,190,194,234,238,242,282,286,290 'pi':330 'preset':143,145 'program':148 'rais':96 'raspberri':329 'recent':57 'reinstal':328 'run':293 'saturday':149,153,157,161,165,169,173,177,181,185,189,193 'sensor':296 'sensor.0x003c84fffef2dac7_program':50 'set':22,47,70,77 'setpoint':123 'show':311 'sinc':324 'sourc':26 'start':337 'state':48,68,78,79,87,88,95,100,104,294 'sudden':6 'sunday':197,201,205,209,213,217,221,225,229,233,237,241 'system':298 'temperatur':23,130,133,137,140,159,171,183,195,207,219,231,243,255,267,279,291,302,305 'thermostat':16,342 'traceback':55 'unabl':20 'unknown':54 'unlock':120 'valid':86,94 've':111 'weekday':245,249,253,257,261,265,269,273,277,281,285,289 'work':3 'write':66 'wrong':322 'z2m':114"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704542241
+visibility: "visible "
+apId: "https://lemmy.tf/post/3180092"
+editedAt: DateTimeImmutable @1719212696 {#2415
date: 2024-06-24 09:04:56.0 +02:00
}
+createdAt: DateTimeImmutable @1704537741 {#1858
date: 2024-01-06 11:42:21.0 +01:00
}
} |
3 |
DENIED
|
edit
|
App\Entity\Entry {#1813
+user: Proxies\__CG__\App\Entity\User {#1896 …}
+magazine: App\Entity\Magazine {#285
+icon: Proxies\__CG__\App\Entity\Image {#265 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#298
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#256 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#252 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#241 …}
+entries: Doctrine\ORM\PersistentCollection {#199 …}
+posts: Doctrine\ORM\PersistentCollection {#157 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#219 …}
+bans: Doctrine\ORM\PersistentCollection {#136 …}
+reports: Doctrine\ORM\PersistentCollection {#122 …}
+badges: Doctrine\ORM\PersistentCollection {#100 …}
+logs: Doctrine\ORM\PersistentCollection {#90 …}
+awards: Doctrine\ORM\PersistentCollection {#79 …}
+categories: Doctrine\ORM\PersistentCollection {#66 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#301
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#297
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1888 …}
+slug: "Getting-a-bunch-of-errors"
+title: "Getting a bunch of errors"
+url: null
+body: """
Everything was working okay, but suddenly I’m getting a bunch of errors from my thermostat and I’m unable to set temperature or anything\n
\n
```\n
\n
<span style="color:#323232;">Source: helpers/entity.py:1125\n
</span><span style="color:#323232;">First occurred: 5 January 2024 at 22:20:54 (4 occurrences)\n
</span><span style="color:#323232;">Last logged: 08:35:01\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">Failed to set state for sensor.0x003c84fffef2dac7_program, fall back to unknown\n
</span><span style="color:#323232;">Traceback (most recent call last):\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1125, in _async_write_ha_state\n
</span><span style="color:#323232;"> hass.states.async_set(\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1831, in async_set\n
</span><span style="color:#323232;"> state = State(\n
</span><span style="color:#323232;"> ^^^^^^\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1408, in __init__\n
</span><span style="color:#323232;"> validate_state(state)\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 228, in validate_state\n
</span><span style="color:#323232;"> raise InvalidStateError(\n
</span><span style="color:#323232;">homeassistant.exceptions.InvalidStateError: Invalid state with length 934. State max length is 255 characters.\n
</span>\n
```\n
\n
I’ve looked in Z2M and its exposing\n
\n
```\n
\n
<span style="color:#323232;">{\n
</span><span style="color:#323232;"> "child_lock": "UNLOCK",\n
</span><span style="color:#323232;"> "current_heating_setpoint": 15,\n
</span><span style="color:#323232;"> "heat": "OFF",\n
</span><span style="color:#323232;"> "linkquality": 224,\n
</span><span style="color:#323232;"> "local_temperature": 14.5,\n
</span><span style="color:#323232;"> "local_temperature_calibration": -2,\n
</span><span style="color:#323232;"> "max_temperature": 45,\n
</span><span style="color:#323232;"> "min_temperature_limit": 5,\n
</span><span style="color:#323232;"> "preset": "hold",\n
</span><span style="color:#323232;"> "preset_mode": "hold",\n
</span><span style="color:#323232;"> "program": {\n
</span><span style="color:#323232;"> "saturday_p1_hour": 6,\n
</span><span style="color:#323232;"> "saturday_p1_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "saturday_p2_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p2_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "saturday_p3_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p3_minute": 30,\n
</span><span style="color:#323232;"> "saturday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "saturday_p4_hour": 20,\n
</span><span style="color:#323232;"> "saturday_p4_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "sunday_p1_hour": 6,\n
</span><span style="color:#323232;"> "sunday_p1_minute": 0,\n
</span><span style="color:#323232;"> "sunday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "sunday_p2_hour": 12,\n
</span><span style="color:#323232;"> "sunday_p2_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "sunday_p3_hour": 14,\n
</span><span style="color:#323232;"> "sunday_p3_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "sunday_p4_hour": 18,\n
</span><span style="color:#323232;"> "sunday_p4_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "weekdays_p1_hour": 6,\n
</span><span style="color:#323232;"> "weekdays_p1_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p1_temperature": 14,\n
</span><span style="color:#323232;"> "weekdays_p2_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p2_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p2_temperature": 16,\n
</span><span style="color:#323232;"> "weekdays_p3_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p3_minute": 30,\n
</span><span style="color:#323232;"> "weekdays_p3_temperature": 15,\n
</span><span style="color:#323232;"> "weekdays_p4_hour": 20,\n
</span><span style="color:#323232;"> "weekdays_p4_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p4_temperature": 12\n
</span><span style="color:#323232;"> },\n
</span><span style="color:#323232;"> "running_state": "idle",\n
</span><span style="color:#323232;"> "sensor": "AL",\n
</span><span style="color:#323232;"> "system_mode": "heat",\n
</span><span style="color:#323232;"> "deadzone_temperature": null,\n
</span><span style="color:#323232;"> "max_temperature_limit": null\n
</span><span style="color:#323232;">}\n
</span>\n
```\n
\n
The log is showing this\n
\n
![](https://lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)\n
\n
Any idea on what’s gone wrong?\n
\n
Edit: Since I had to reinstall Raspberry Pi OS anyway, I just decided to start again. Hopefully adding the thermostat to HA anew will fix it.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 0
+favouriteCount: 2
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1704537741 {#1830
date: 2024-01-06 11:42:21.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1887 …}
+votes: Doctrine\ORM\PersistentCollection {#1950 …}
+reports: Doctrine\ORM\PersistentCollection {#2425 …}
+favourites: Doctrine\ORM\PersistentCollection {#1903 …}
+notifications: Doctrine\ORM\PersistentCollection {#1898 …}
+badges: Doctrine\ORM\PersistentCollection {#1904 …}
+children: []
-id: 28221
-titleTs: "'bunch':3 'error':5 'get':1"
-bodyTs: "'-2':135 '/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':315 '/usr/src/homeassistant/homeassistant/core.py':72,81,90 '/usr/src/homeassistant/homeassistant/helpers/entity.py':61 '0':156,168,192,204,252,264,288 '01':44 '08':42 '1125':28,63 '12':196,212,244,292 '14':160,208,224,256 '14.5':131 '1408':83 '15':124,184,232,280 '16':172,220,268 '18':236 '1831':74 '20':36,188,284 '2024':33 '22':35 '224':128 '228':92 '255':108 '30':180,216,228,240,276 '35':43 '4':38 '45':138 '5':31,142 '54':37 '6':152,200,248 '8':164,176,260,272 '934':103 'ad':340 'al':297 'anew':345 'anyth':25 'anyway':332 'async':65,76 'back':52 'bunch':11 'calibr':134 'call':58 'charact':109 'child':118 'current':121 'deadzon':301 'decid':335 'edit':323 'error':13 'everyth':1 'expos':117 'fail':45 'fall':51 'file':60,71,80,89 'first':29 'fix':347 'get':9 'gone':321 'ha':67,344 'hass.states.async':69 'heat':122,125,300 'helpers/entity.py':27 'hold':144,147 'homeassistant.exceptions.invalidstateerror':98 'hope':339 'hour':151,163,175,187,199,211,223,235,247,259,271,283 'idea':317 'idl':295 'init':85 'invalid':99 'invalidstateerror':97 'januari':32 'last':40,59 'lemmy.tf':314 'lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':313 'length':102,106 'limit':141,306 'line':62,73,82,91 'linkqual':127 'local':129,132 'lock':119 'log':41,309 'look':112 'm':8,19 'max':105,136,304 'min':139 'minut':155,167,179,191,203,215,227,239,251,263,275,287 'mode':146,299 'null':303,307 'occur':30 'occurr':39 'okay':4 'os':331 'p1':150,154,158,198,202,206,246,250,254 'p2':162,166,170,210,214,218,258,262,266 'p3':174,178,182,222,226,230,270,274,278 'p4':186,190,194,234,238,242,282,286,290 'pi':330 'preset':143,145 'program':148 'rais':96 'raspberri':329 'recent':57 'reinstal':328 'run':293 'saturday':149,153,157,161,165,169,173,177,181,185,189,193 'sensor':296 'sensor.0x003c84fffef2dac7_program':50 'set':22,47,70,77 'setpoint':123 'show':311 'sinc':324 'sourc':26 'start':337 'state':48,68,78,79,87,88,95,100,104,294 'sudden':6 'sunday':197,201,205,209,213,217,221,225,229,233,237,241 'system':298 'temperatur':23,130,133,137,140,159,171,183,195,207,219,231,243,255,267,279,291,302,305 'thermostat':16,342 'traceback':55 'unabl':20 'unknown':54 'unlock':120 'valid':86,94 've':111 'weekday':245,249,253,257,261,265,269,273,277,281,285,289 'work':3 'write':66 'wrong':322 'z2m':114"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704542241
+visibility: "visible "
+apId: "https://lemmy.tf/post/3180092"
+editedAt: DateTimeImmutable @1719212696 {#2415
date: 2024-06-24 09:04:56.0 +02:00
}
+createdAt: DateTimeImmutable @1704537741 {#1858
date: 2024-01-06 11:42:21.0 +01:00
}
} |
4 |
DENIED
|
moderate
|
App\Entity\Entry {#1813
+user: Proxies\__CG__\App\Entity\User {#1896 …}
+magazine: App\Entity\Magazine {#285
+icon: Proxies\__CG__\App\Entity\Image {#265 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#298
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#256 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#252 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#241 …}
+entries: Doctrine\ORM\PersistentCollection {#199 …}
+posts: Doctrine\ORM\PersistentCollection {#157 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#219 …}
+bans: Doctrine\ORM\PersistentCollection {#136 …}
+reports: Doctrine\ORM\PersistentCollection {#122 …}
+badges: Doctrine\ORM\PersistentCollection {#100 …}
+logs: Doctrine\ORM\PersistentCollection {#90 …}
+awards: Doctrine\ORM\PersistentCollection {#79 …}
+categories: Doctrine\ORM\PersistentCollection {#66 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#301
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#297
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1888 …}
+slug: "Getting-a-bunch-of-errors"
+title: "Getting a bunch of errors"
+url: null
+body: """
Everything was working okay, but suddenly I’m getting a bunch of errors from my thermostat and I’m unable to set temperature or anything\n
\n
```\n
\n
<span style="color:#323232;">Source: helpers/entity.py:1125\n
</span><span style="color:#323232;">First occurred: 5 January 2024 at 22:20:54 (4 occurrences)\n
</span><span style="color:#323232;">Last logged: 08:35:01\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">Failed to set state for sensor.0x003c84fffef2dac7_program, fall back to unknown\n
</span><span style="color:#323232;">Traceback (most recent call last):\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1125, in _async_write_ha_state\n
</span><span style="color:#323232;"> hass.states.async_set(\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1831, in async_set\n
</span><span style="color:#323232;"> state = State(\n
</span><span style="color:#323232;"> ^^^^^^\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 1408, in __init__\n
</span><span style="color:#323232;"> validate_state(state)\n
</span><span style="color:#323232;"> File "/usr/src/homeassistant/homeassistant/core.py", line 228, in validate_state\n
</span><span style="color:#323232;"> raise InvalidStateError(\n
</span><span style="color:#323232;">homeassistant.exceptions.InvalidStateError: Invalid state with length 934. State max length is 255 characters.\n
</span>\n
```\n
\n
I’ve looked in Z2M and its exposing\n
\n
```\n
\n
<span style="color:#323232;">{\n
</span><span style="color:#323232;"> "child_lock": "UNLOCK",\n
</span><span style="color:#323232;"> "current_heating_setpoint": 15,\n
</span><span style="color:#323232;"> "heat": "OFF",\n
</span><span style="color:#323232;"> "linkquality": 224,\n
</span><span style="color:#323232;"> "local_temperature": 14.5,\n
</span><span style="color:#323232;"> "local_temperature_calibration": -2,\n
</span><span style="color:#323232;"> "max_temperature": 45,\n
</span><span style="color:#323232;"> "min_temperature_limit": 5,\n
</span><span style="color:#323232;"> "preset": "hold",\n
</span><span style="color:#323232;"> "preset_mode": "hold",\n
</span><span style="color:#323232;"> "program": {\n
</span><span style="color:#323232;"> "saturday_p1_hour": 6,\n
</span><span style="color:#323232;"> "saturday_p1_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "saturday_p2_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p2_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "saturday_p3_hour": 8,\n
</span><span style="color:#323232;"> "saturday_p3_minute": 30,\n
</span><span style="color:#323232;"> "saturday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "saturday_p4_hour": 20,\n
</span><span style="color:#323232;"> "saturday_p4_minute": 0,\n
</span><span style="color:#323232;"> "saturday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "sunday_p1_hour": 6,\n
</span><span style="color:#323232;"> "sunday_p1_minute": 0,\n
</span><span style="color:#323232;"> "sunday_p1_temperature": 14,\n
</span><span style="color:#323232;"> "sunday_p2_hour": 12,\n
</span><span style="color:#323232;"> "sunday_p2_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p2_temperature": 16,\n
</span><span style="color:#323232;"> "sunday_p3_hour": 14,\n
</span><span style="color:#323232;"> "sunday_p3_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p3_temperature": 15,\n
</span><span style="color:#323232;"> "sunday_p4_hour": 18,\n
</span><span style="color:#323232;"> "sunday_p4_minute": 30,\n
</span><span style="color:#323232;"> "sunday_p4_temperature": 12,\n
</span><span style="color:#323232;"> "weekdays_p1_hour": 6,\n
</span><span style="color:#323232;"> "weekdays_p1_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p1_temperature": 14,\n
</span><span style="color:#323232;"> "weekdays_p2_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p2_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p2_temperature": 16,\n
</span><span style="color:#323232;"> "weekdays_p3_hour": 8,\n
</span><span style="color:#323232;"> "weekdays_p3_minute": 30,\n
</span><span style="color:#323232;"> "weekdays_p3_temperature": 15,\n
</span><span style="color:#323232;"> "weekdays_p4_hour": 20,\n
</span><span style="color:#323232;"> "weekdays_p4_minute": 0,\n
</span><span style="color:#323232;"> "weekdays_p4_temperature": 12\n
</span><span style="color:#323232;"> },\n
</span><span style="color:#323232;"> "running_state": "idle",\n
</span><span style="color:#323232;"> "sensor": "AL",\n
</span><span style="color:#323232;"> "system_mode": "heat",\n
</span><span style="color:#323232;"> "deadzone_temperature": null,\n
</span><span style="color:#323232;"> "max_temperature_limit": null\n
</span><span style="color:#323232;">}\n
</span>\n
```\n
\n
The log is showing this\n
\n
![](https://lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)\n
\n
Any idea on what’s gone wrong?\n
\n
Edit: Since I had to reinstall Raspberry Pi OS anyway, I just decided to start again. Hopefully adding the thermostat to HA anew will fix it.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 0
+favouriteCount: 2
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1704537741 {#1830
date: 2024-01-06 11:42:21.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1887 …}
+votes: Doctrine\ORM\PersistentCollection {#1950 …}
+reports: Doctrine\ORM\PersistentCollection {#2425 …}
+favourites: Doctrine\ORM\PersistentCollection {#1903 …}
+notifications: Doctrine\ORM\PersistentCollection {#1898 …}
+badges: Doctrine\ORM\PersistentCollection {#1904 …}
+children: []
-id: 28221
-titleTs: "'bunch':3 'error':5 'get':1"
-bodyTs: "'-2':135 '/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':315 '/usr/src/homeassistant/homeassistant/core.py':72,81,90 '/usr/src/homeassistant/homeassistant/helpers/entity.py':61 '0':156,168,192,204,252,264,288 '01':44 '08':42 '1125':28,63 '12':196,212,244,292 '14':160,208,224,256 '14.5':131 '1408':83 '15':124,184,232,280 '16':172,220,268 '18':236 '1831':74 '20':36,188,284 '2024':33 '22':35 '224':128 '228':92 '255':108 '30':180,216,228,240,276 '35':43 '4':38 '45':138 '5':31,142 '54':37 '6':152,200,248 '8':164,176,260,272 '934':103 'ad':340 'al':297 'anew':345 'anyth':25 'anyway':332 'async':65,76 'back':52 'bunch':11 'calibr':134 'call':58 'charact':109 'child':118 'current':121 'deadzon':301 'decid':335 'edit':323 'error':13 'everyth':1 'expos':117 'fail':45 'fall':51 'file':60,71,80,89 'first':29 'fix':347 'get':9 'gone':321 'ha':67,344 'hass.states.async':69 'heat':122,125,300 'helpers/entity.py':27 'hold':144,147 'homeassistant.exceptions.invalidstateerror':98 'hope':339 'hour':151,163,175,187,199,211,223,235,247,259,271,283 'idea':317 'idl':295 'init':85 'invalid':99 'invalidstateerror':97 'januari':32 'last':40,59 'lemmy.tf':314 'lemmy.tf/pictrs/image/06c24a2e-5a11-48f6-bb2a-f5522d66aef0.png)':313 'length':102,106 'limit':141,306 'line':62,73,82,91 'linkqual':127 'local':129,132 'lock':119 'log':41,309 'look':112 'm':8,19 'max':105,136,304 'min':139 'minut':155,167,179,191,203,215,227,239,251,263,275,287 'mode':146,299 'null':303,307 'occur':30 'occurr':39 'okay':4 'os':331 'p1':150,154,158,198,202,206,246,250,254 'p2':162,166,170,210,214,218,258,262,266 'p3':174,178,182,222,226,230,270,274,278 'p4':186,190,194,234,238,242,282,286,290 'pi':330 'preset':143,145 'program':148 'rais':96 'raspberri':329 'recent':57 'reinstal':328 'run':293 'saturday':149,153,157,161,165,169,173,177,181,185,189,193 'sensor':296 'sensor.0x003c84fffef2dac7_program':50 'set':22,47,70,77 'setpoint':123 'show':311 'sinc':324 'sourc':26 'start':337 'state':48,68,78,79,87,88,95,100,104,294 'sudden':6 'sunday':197,201,205,209,213,217,221,225,229,233,237,241 'system':298 'temperatur':23,130,133,137,140,159,171,183,195,207,219,231,243,255,267,279,291,302,305 'thermostat':16,342 'traceback':55 'unabl':20 'unknown':54 'unlock':120 'valid':86,94 've':111 'weekday':245,249,253,257,261,265,269,273,277,281,285,289 'work':3 'write':66 'wrong':322 'z2m':114"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704542241
+visibility: "visible "
+apId: "https://lemmy.tf/post/3180092"
+editedAt: DateTimeImmutable @1719212696 {#2415
date: 2024-06-24 09:04:56.0 +02:00
}
+createdAt: DateTimeImmutable @1704537741 {#1858
date: 2024-01-06 11:42:21.0 +01:00
}
} |