Page 1 of 1
rawData cutting off value
Posted: Sunday 07 May 2023 11:02
by smartypantsuk
Hi,
I'm trying to get the full value of rawData which should be something like "19.0 C, (5.0 C), HeatingOff"
but it's only giving "19.0" and missing the rest off.
Is that because it's an array or lookup table that needs to be processed differently?
How can I fetch the whole value as a string or separate values please?
Thanks
Re: rawData cutting off value
Posted: Sunday 07 May 2023 12:04
by waltervl
So you are referring to evohome data? From what device type (controller, relay, zone)?
Did you check the evohome dzvents documentation?
https://www.domoticz.com/wiki/DzVents:_ ... troller.29
To get the mode you can use the .mode function.
Re: rawData cutting off value
Posted: Sunday 07 May 2023 13:11
by smartypantsuk
In this instance I'm trying to pull the whole value of the Data key which is in rawData. I am using evohome but it's not specific to evohome. I
Re: rawData cutting off value [Solved]
Posted: Sunday 07 May 2023 14:08
by waltervl
Did you try .sValue ?
Re: rawData cutting off value
Posted: Sunday 07 May 2023 18:19
by smartypantsuk
waltervl wrote: ↑Sunday 07 May 2023 14:08
Did you try .sValue ?
No I don't know what that is
Re: rawData cutting off value
Posted: Sunday 07 May 2023 18:51
by waltervl
Check the dzvents documentation and then the general devices part
https://www.domoticz.com/wiki/DzVents:_ ... ll_devices
To use example:
svaluedata = domoticz.devices('your device').sValue
Re: rawData cutting off value
Posted: Sunday 07 May 2023 22:16
by smartypantsuk
That actually provides what I need.
It reads as a string with the values separated by semi-colons, but that's fine.
This is what I get "20.16;5.00;HeatingOff" so I can work with that.
Thanks for you help @waltervl
Re: rawData cutting off value
Posted: Monday 08 May 2023 0:39
by waltervl
You are welcome. Still wondering why you are doing this as you seem to want to split the again. And dzvents already does this splitting for you.
Re: rawData cutting off value
Posted: Monday 08 May 2023 11:28
by smartypantsuk
waltervl wrote: ↑Monday 08 May 2023 0:39
You are welcome. Still wondering why you are doing this as you seem to want to split the again. And dzvents already does this splitting for you.
When any of the three values change, I send the updated values to home assistant. Being able to monitor a single string for changes is easier and simpler than monitoring three values.
I simply have a variable that records the string and if it hasn't changed when the script is called it doesn't send the values.