Bump hatasmota to 0.0.27#42802
Conversation
|
Played around with this as I was having issues with switches and works wonderfully! Thanks @emontnemery. |
| SENSOR_STATUS_RESTART: {ICON: "mdi:information-outline"}, | ||
| SENSOR_STATUS_SIGNAL: {DEVICE_CLASS: DEVICE_CLASS_SIGNAL_STRENGTH}, | ||
| SENSOR_STATUS_RSSI: {ICON: "mdi:access-point"}, | ||
| SENSOR_STATUS_UPTIME: {ICON: "mdi:progress-clock"}, |
There was a problem hiding this comment.
is there a reason this changed from DEVICE_CLASS_TIMESTAMP? there may be some differences in frontend formatting without such.
There was a problem hiding this comment.
Yes, it's because the uptime is not a timestamp, it measures elapsed time.
There was a problem hiding this comment.
Uptime has its own format: [n days]T[hh:mm:ss].
{"Uptime":"3T13:38:27"}To have it working as DEVICE_CLASS_TIMESTAMP a conversion is needed by our side and frankly doesn't worth the effort since is already showing a clear information.
There was a problem hiding this comment.
while it may seem not worth it, this is going to create a lot of state changes which is why using timestamp is preferrred as you would only set the last boot time
There was a problem hiding this comment.
Hmm, that's a good point. Storing the timestamp of last restart would be enough, but it's maybe not so user friendly for display?
Edit: Maybe a solution could be to truncate the uptime to full hours to prevent spamming a lot of state changes.
There was a problem hiding this comment.
Our standard is to use device class timestamp for these cases. Please convert the time to an absolute time if needed.
There was a problem hiding this comment.
Thanks Martin, we'll get that sorted in next hatasmota version.
Proposed change
Bump hatasmota from 0.0.26 to 0.0.27
This fixes buttons and switches and adds some additional status sensors.
Changes:
emontnemery/hatasmota@0.0.26...0.0.27
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: