-
Notifications
You must be signed in to change notification settings - Fork 33
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
V2.0.0 does not trigger correctly when sensors updated #65
Comments
hello, @edenhaus is working on a update that should bring some corrections. |
Can you please describe your setup with Node Red. |
All Node-RED is doing is waiting for the bodymiscale entity state to change (update). entity state - Last Changed date is the first time it ran having reverted to V1.1.5, Last Updated was the reading this morning.
Seems to have as it doesn't work once updated. As I said, I have 2 people defined (so 2 entities) and both entities get updated at the same time (i.e. when one set of weight/impedance sensors update) on V2.0 even though the 2 bodymiscale entities are linked to different sensors. |
I will verify it by the end of this week (Currently I'm on holiday).
Can you please share your config as I don't understand how both entities can be updated the same time with different sensors (scales) configured |
No neither do I - it shouldn't - only happens with V2!!!
Can you also check the new code fixes issue #51 at the same time. Needs to wait for both sensors to update before reporting else it seems to use the impedance from last time. |
I cannot reproduce your issue. The entity is updated correctly when one of it sensors get a new state and only the specific entity and not all bodymiscale entities. I used the following config for testing: input_number:
weight:
name: Weight
initial: 70
min: 10
max: 200
step: 0.1
impedance:
name: Impedance
initial: 400
min: 0
max: 3000
step: 1
weight2:
name: Weight
initial: 80
min: 10
max: 200
step: 0.1
impedance2:
name: Impedance
initial: 600
min: 0
max: 3000
step: 1
bodymiscale:
test:
sensors:
weight: input_number.weight
impedance: input_number.impedance
height: 180
born: "1990-01-01"
gender: "male"
model_miscale: "181B"
test2:
sensors:
weight: input_number.weight2
impedance: input_number.impedance2
height: 180
born: "1990-01-01"
gender: "male"
model_miscale: "181B" |
Wait coming back to this screenshot... The entity To get all attributes changes, you need to change your config on Node Red. As you currently only are listing for change changes and the state remains As I have written in #61 (comment) I will add an sensor for each attribute in the future, so you can directly use them in Node Red if you need it. P.S.: As HA is optimizing the performance a lot in the last releases and also deprecating old (slow, incorrect) ways, probably 1.1.5 will stopping to work in future releases. @dckiller51 Issue can be closed imo, as no change on our side is required |
V2.0.0 does not work when the sensors are updated.
I have 2 x Scales defined and both updated when one set of sensors updated.
Node-Red did not pick up the state change so something is amiss.
Reverted to 1.1.5 and all OK.
The text was updated successfully, but these errors were encountered: