I have ESP32 device that worked about 2 years without any problems, but lately I noticed that device sliders in device dashboard started to behave abnormally.
Firstly in all of my mobile devices (no difference in app or in browser) they show sliders in left position when actual setting is completely different. When opened in my PC browser however sliders are in correct position. This is more or less just cosmetic problem but wherever I try to change it to new value ( no difference in which device) I can see in logs that it would set new value and after that immediately sets old value back. Without any hint why. I looked at all logs avail but nowhere is any clue why.
So what I have in ESPHome yaml is this:
number:
- id: boiler_target_temperature
name: Boiler target temperature
platform: fourheat
datapoint: B20199
device_class: temperature
unit_of_measurement: °C
min_value: 5
max_value: 110
As I said this worked over 2 years without any problems. I have literally done nothing else then updated to latest version.
Has ESPHome done something that I am not aware of? Or HA?
Device is Android 11 as I generally use my older devices for HA, but this does not matter bcs, as I said, also in my PC with any browser it is impossible to change number/slider value.
This cant be front end problem especially since I see that the value changes but it changes back after about five or ten seconds.
I know absolutely nothing about the external component you use, but that behavior smells like read/write type of register and unsuccessful write action. So next cycle it reads the register and returns the previous value.
I did resolve the value change issue. above was mentioned that it could be unsuccessful write issue. With no error logs and the fact that I saw the value change briefly in ESPHome device logs the conclusion was that this must be external component itself refusing write. So I did hard reset and this seemed resolve this issue.
The other issue that older android devices have now problems to properly work with HA seems to be trend. I dont believe that there is some solution to that. I have had other kind of problems last half of year or so
Changing value is not android issue.
When talking about sliders it is Android issue. Works in PC but not in Android. Specifically with older android versions.
I do not have emulator and will not set it up for just that so I dont know from what version exactly this behavior (generic slider does not show in correct position) appears but I can say that in Android 11 and below, it does not appear correctly.
You don’t mention whether you’re using the browser, the companion app, or something else like Fully Kiosk when you see these issues.
Assuming you’re seeing this when using both the browser and the companion app on the same device, I suggest you update Android Webview on that device. It’s usually the most common source of issues.
Also, let us know if you’re using a core dashboard card or whether it’s something custom from HACS/Github. Could be a custom integration specific issue, otherwise this would have been reported much earlier.
In browser everything looks fine. In My HA tablet with android 6 everything is as in image both - app and browser. But overall companion app in older versions of android is worse last 6 months or so. In that old tablet the app is getting so unbearably slow now that I use only browser for HA.
And I cant update anything additionally in android. I am sure you know that googel pushes updates only when it wants to force users with some AI crap.
I had to give up with an old android tablet, I still feel sorry because it was unused galaxy with protection sheet still on…
So did you solve the number write issue?
I resolved number write but regardless of that there is incorrect slider position that cant be resolved, also companion app in old android has become in last months unbearably slow.
My tablet will probably end with thousands of others in electronic scrap collection bins.