Set Actual Values on Floorplan

Moderator: leecollings

Post Reply
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Set Actual Values on Floorplan

Post by masselb »

Hello,

To shows the values of my solar-system, I have several "dummy" devices which are updated with a DZvents Script in the utility tab. This works fine, the script runs every 2 minutes and the values are pretty accurate. However, wen I put these sensors on a Floorplan, tehy show the added Kwh of all time (which is the first value in a report). Is there a way to define which value the Floorplan shows? I was under the impression that it would be the same value as in the Utility tab, is there some sort of default setting for Floorplans?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set Actual Values on Floorplan

Post by waltervl »

For me it shows the actual Watt values for energy counter, general, kwh
What dummy counter or energy device do you use?
Screenshot_20240410-204721-218.png
Screenshot_20240410-204721-218.png (120.75 KiB) Viewed 1816 times
Screenshot_20240410-204557.png
Screenshot_20240410-204557.png (78.86 KiB) Viewed 1816 times
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Set Actual Values on Floorplan

Post by masselb »

Hey Walter,
I take virtual device, choose Electric (usage+Teller). On my Utility Tab it is working perfectly. I have several which I fill with a script, but I have a few who are being red from zwave (Aeotec HEM3). Type are all the same (electric-usage+teller). I have set them to "levering" or "verbruik" according to in/output - and to "Computed".
In the statistics from each device under "Rapport" is the second value "Teller", which it prints to the Floorplan. However I would like the "plain normal" actual value on the floorplan. Wen I switch a device from "computed" to "from device", the teller is being reset to 0 and it states 0 in the floorplan, then starts to add up again.
Funny thing is, I have values that do work like the utility Tab - same type of virtual device, same script that's feeding it, same settings in the device itself ("computed - delivery")

Example from the script:
-- Update the Domoticz device with the retrieved data
local device = domoticz.devices('Solax X1 String')
device.updateElectricity(inverterData.powerdc1)
local device = domoticz.devices('Solax X1 String Garage')
device.updateElectricity(inverterData.powerdc2)
local device = domoticz.devices('X1 Powerbank transfer')
device.updateElectricity(inverterData.batPower)
local device = domoticz.devices('Solax X1 Powerbank')
device.updatePercentage(inverterData.soc)
local device = domoticz.devices('L1 Load X1_Group')
device.updateElectricity(inverterData.acpower)

The first two are giving the values correct on the Utility, but not on the floorplan. 3 and 4 are correct on both. The last one is not in the floorplan.

I thought maybe there is something to configure for Floorplans, as it behaves different as in the normal utility Tab. That's why I asked.
My Dashticz-pi is down at the moment, so I wanted to make a simple solar-dashboard.
1.png
1.png (146.26 KiB) Viewed 1795 times
2.png
2.png (239.98 KiB) Viewed 1795 times
3.png
3.png (23.7 KiB) Viewed 1795 times
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set Actual Values on Floorplan

Post by waltervl »

There is no setting for floorplan, it is all hardcoded.
You are not using a default theme but machinon theme so it is hard to understand your screenshots.

That you fill the devices with a script has nothing to do with how data is displayed on the floorplan, Domoticz does not care about that.

The compute/from device switch is to be able to have Domoticz to count the total energy in kWh when that counter is not available from your real device (eg solar panel inverter data).
Switching from compute to from device off course destroyed the previous calculation so it will reset to 0.....
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
RonkA
Posts: 95
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2023.2
Location: Harlingen
Contact:

Re: Set Actual Values on Floorplan

Post by RonkA »

I would just add a hidden dummy device type -usage:electric- and fill this with the value you need from your script and read the value from this..
(hide the device from the utility tab by adding a '$' in front of the devicename)
SolarEdge ModbusTCP - Open Weather Map - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Set Actual Values on Floorplan

Post by masselb »

Oki thanks for explaining..
@RonkA; are you saying a hidden device would behave different from a not hidden dummy device?

I will do some testing with the theme and the hidden dummy, perhaps one of this is the solution, thanks for the tips :)
User avatar
RonkA
Posts: 95
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2023.2
Location: Harlingen
Contact:

Re: Set Actual Values on Floorplan

Post by RonkA »

are you saying a hidden device would behave different from a not hidden dummy device?

No, but imho this device has no use other than to simply buffer the watt-value so you can use it.
Having this visible in the utility tab or not doesn't matter for the behavior.
In the Device-tab the device stays visible..

Another way to buffer the value could be to use a user variable but this has to be written in the script.
Last edited by RonkA on Tuesday 16 April 2024 0:36, edited 1 time in total.
SolarEdge ModbusTCP - Open Weather Map - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Set Actual Values on Floorplan

Post by masselb »

Hello Guys, I was curious so tested the ideas remotely :)
I swapped the theme to Default but it doesn't change anything. However, I have made a hidden dummy device and put this in the script (basicly the script fills the "normal dummy" and the Hidden Dummy). Put the Hidden dummy in the floorplan and... YES! It shows the right value.
So, RonkA's theory is correct. Next step is to put multiple hidden devices in the floorplan :)
Thanks a lot for this, now I can finish my "solar Dashboard", at least untill I have reinstalled Dashticz ..
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Set Actual Values on Floorplan

Post by masselb »

Update on my previous post:
I am at Home playing around with the floorplan. I found that wenn I make a virtual device, and leave the icon at standard everything works fine on both sides. However, if I change the icon of a dummy -no matter hidden or not- it shows the actual value in the Utility Tab but doesn't at the floorplan. So i guess this is in some way hard coded. So, I will make an extra dummy for all devices who make use of an alternative Icon and it works perfectly.
That is, unless someone has an idea of how to alter it, because all the same Icons on the floorplan isn't that pretty. But that's whishfull thinking :)
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set Actual Values on Floorplan

Post by waltervl »

I think you ran into some bug but it is hard for me to understand what the original issue is.
Some screenshots of the original widget that also states device type and the floorplan value that you would expect on the floorplan including a screenshot of the device on a floorplan would help a lot.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
masselb
Posts: 20
Joined: Friday 06 September 2019 11:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Set Actual Values on Floorplan

Post by masselb »

Hey Walter,
I have finished the Florrplan for now, leaving the default icons in place and then everything works as it's supposed to. I suspect it's an issue where the floorplan doesn't accept other icons for values that are external. If I put a normal switch in the floorplan, there is no problem. Must be a matter of the fact that electrical Dummy's have multiple values to build the rapports. It looks like the floorplan makes a difference between "default", where it takes the actual value just as is stated in the utility Tab, bus as soon as I alter the Icon it looks at the first value in the Statistics of the Dummy device.
For me it is not a real problem or bug, it's just optical prettier to be able to chnage the icon to a more fitting one.

Currently, I am in the middle of a renovation at home, where my Server Room is partially out of order. Just essential VM's are up, my "Dashticz" is down but I will build a new Solar Dashboard wen it's back up, not needing the Floorplan directly. However, thanks a lot for attending, it's worth mentioning to see one Helpfull person is always there in this forum ;)
ssk17051980
Posts: 112
Joined: Thursday 08 December 2022 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: ROMANIA
Contact:

Re: Set Actual Values on Floorplan

Post by ssk17051980 »

waltervl wrote: Wednesday 10 April 2024 20:50 For me it shows the actual Watt values for energy counter, general, kwh
What dummy counter or energy device do you use?
Screenshot_20240410-204721-218.png
Screenshot_20240410-204557.png
how do you measure the presure in bar ?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set Actual Values on Floorplan

Post by waltervl »

ssk17051980 wrote: Tuesday 23 April 2024 16:13
waltervl wrote: Wednesday 10 April 2024 20:50 For me it shows the actual Watt values for energy counter, general, kwh
What dummy counter or energy device do you use?
how do you measure the presure in bar ?
With a Domoticz pressure device:
https://www.domoticz.com/wiki/Dummy_for ... s#Pressure
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ssk17051980
Posts: 112
Joined: Thursday 08 December 2022 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: ROMANIA
Contact:

Re: Set Actual Values on Floorplan

Post by ssk17051980 »

can you give more info pls. i'm tryng to monitor the presure for my water pipe, and i try for 1 year.
what sensor . or can you give me the info about all the hardware.
thx.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set Actual Values on Floorplan

Post by waltervl »

The data is coming from my Nefit Easy thermostat that is talking to my heating system. So not something you can use.

You probably can buy water pressure sensors and connect them to a ESP device that can send the data to Domoticz.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests