rawData cutting off value  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
smartypantsuk
Posts: 12
Joined: Friday 21 January 2022 16:17
Target OS: Windows
Domoticz version: 2021.1
Location: North Yorkshire, UK
Contact:

rawData cutting off value

Post 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
Software:
Windows 10 Pro
Domoticz & Homeseer Home Assistant
HA-Bridge & Traccar
Jellfin Media Server

Hardware:
ASUS Mini Core i5 / 8GB RAM
Heating: Honeywell Evohome + HGS80
Fibaro Z-Wave Dimmers/Switches
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: rawData cutting off value

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
smartypantsuk
Posts: 12
Joined: Friday 21 January 2022 16:17
Target OS: Windows
Domoticz version: 2021.1
Location: North Yorkshire, UK
Contact:

Re: rawData cutting off value

Post 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
Software:
Windows 10 Pro
Domoticz & Homeseer Home Assistant
HA-Bridge & Traccar
Jellfin Media Server

Hardware:
ASUS Mini Core i5 / 8GB RAM
Heating: Honeywell Evohome + HGS80
Fibaro Z-Wave Dimmers/Switches
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: rawData cutting off value  [Solved]

Post by waltervl »

Did you try .sValue ?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
smartypantsuk
Posts: 12
Joined: Friday 21 January 2022 16:17
Target OS: Windows
Domoticz version: 2021.1
Location: North Yorkshire, UK
Contact:

Re: rawData cutting off value

Post by smartypantsuk »

waltervl wrote: Sunday 07 May 2023 14:08 Did you try .sValue ?
No I don't know what that is
Software:
Windows 10 Pro
Domoticz & Homeseer Home Assistant
HA-Bridge & Traccar
Jellfin Media Server

Hardware:
ASUS Mini Core i5 / 8GB RAM
Heating: Honeywell Evohome + HGS80
Fibaro Z-Wave Dimmers/Switches
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: rawData cutting off value

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
smartypantsuk
Posts: 12
Joined: Friday 21 January 2022 16:17
Target OS: Windows
Domoticz version: 2021.1
Location: North Yorkshire, UK
Contact:

Re: rawData cutting off value

Post by smartypantsuk »

waltervl wrote: Sunday 07 May 2023 18:51 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
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
Software:
Windows 10 Pro
Domoticz & Homeseer Home Assistant
HA-Bridge & Traccar
Jellfin Media Server

Hardware:
ASUS Mini Core i5 / 8GB RAM
Heating: Honeywell Evohome + HGS80
Fibaro Z-Wave Dimmers/Switches
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: rawData cutting off value

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
smartypantsuk
Posts: 12
Joined: Friday 21 January 2022 16:17
Target OS: Windows
Domoticz version: 2021.1
Location: North Yorkshire, UK
Contact:

Re: rawData cutting off value

Post 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.
Software:
Windows 10 Pro
Domoticz & Homeseer Home Assistant
HA-Bridge & Traccar
Jellfin Media Server

Hardware:
ASUS Mini Core i5 / 8GB RAM
Heating: Honeywell Evohome + HGS80
Fibaro Z-Wave Dimmers/Switches
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest