How to manipulate reported values?

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

How to manipulate reported values?

Post by Kurtsejr »

I have a Samsung SmartThings Outlet that works with my ZiGate gateway. The Outlet can monitor power usages in Watt. I have tested with a unit that I know usages 40W, but in Domoticz this is reported as 400 watt. This means that I need to divide by 10, how do I do this in Domoticz or in ZiGate?
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

It might required some adjustments in the integration.

Can you send me the export.json as specified I. This page https://github.com/pipiche38/Domoticz-Z ... -device.md


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Thanks! the export.json is attached

/Kurt
Attachments
export.zip
(4.31 KiB) Downloaded 37 times
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

I've check the following device: "Græsrobot tænd/sluk og energiforbrug"

On the file you provided I'm getting 5.3 Watts (on the last measurement). Is that incorrect ?

Could you move to beta-4.10.108 ?

Code: Select all

git pull
git checkout beta
git pull
Then , I would recommend to
1/ remove the existing widgets created for this device
2/ redo the pairing
=> You should then get Power, Meter, Plug and Voltage
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Have done as you suggest, update to the beta version and then delete the existing widget and reboot my Rasp. It seems to be working, it recharge and the power usages is a bit high, but now I also have a "," in the reading :-). Check again tomorrow and return.
The Zigate web is different, there is no traffic overview in the main Zigate web page, but I can find my devices under management, and the topology is also ok.
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

What do you mean by Zigate web is different ? can you share a screenshoot
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Hi pipiche

Data is now as expected, super and great!
Attached is the Dashboard, no change if I hit the refresh

TKurt
Attachments
zigate dashboard.PNG
zigate dashboard.PNG (160.66 KiB) Viewed 1093 times
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

Excellent, if you are happy, i'm too.

Would you mind to register your device to the Zigbee compatible Database, so we can track the Zigate compatibility ?
https://zigbee.blakadder.com/
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Of cause, done.
What about the dashboard? - will there be an update?

/Kurt
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

For the dashboard, can you enable the Console mode from your browser (usally you need to press F12) and then select Console, do a Refresh and check if there is any errors ?

Could you try with an other browser ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Sorry for the late answer, have tested Chrome and Edge, in Console window(tap) no errors - sorry.
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Will it be OK to move to stable release, version 4.9.005 - meaning that my measures will still be working?
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Have discovered this: the "frontpage" has no errors in "Console mode", but when i enter Settings in the menu I get this:

Hope it's useful
Spoiler: show

Code: Select all

main-es2015.f04a8c67ed87989d9513.js:1 ERROR TypeError: Cannot read property 'forEach' of undefined
    at t.ngOnInit (12-es2015.10e58901aa650821c111.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR Error: Cannot find control with name: 'Certification'
    at it (main-es2015.f04a8c67ed87989d9513.js:1)
    at tt (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.addFormGroup (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.ngOnInit (main-es2015.f04a8c67ed87989d9513.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at Gn (main-es2015.f04a8c67ed87989d9513.js:1)
    at Object.Vn (main-es2015.f04a8c67ed87989d9513.js:1)
    at V (12-es2015.10e58901aa650821c111.js:1)
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR Error: Cannot find control with path: 'Certification -> current'
    at it (main-es2015.f04a8c67ed87989d9513.js:1)
    at Q (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.addControl (main-es2015.f04a8c67ed87989d9513.js:1)
    at t._setUpControl (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.ngOnChanges (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.Xa.t.type.ngOnChanges.t.onChanges (main-es2015.f04a8c67ed87989d9513.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR TypeError: Cannot read property 'forEach' of undefined
    at t.ngOnInit (12-es2015.10e58901aa650821c111.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR Error: Cannot find control with name: 'channel'
    at it (main-es2015.f04a8c67ed87989d9513.js:1)
    at tt (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.addFormGroup (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.ngOnInit (main-es2015.f04a8c67ed87989d9513.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at Gn (main-es2015.f04a8c67ed87989d9513.js:1)
    at Object.Vn (main-es2015.f04a8c67ed87989d9513.js:1)
    at V (12-es2015.10e58901aa650821c111.js:1)
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR Error: Cannot find control with path: 'channel -> current'
    at it (main-es2015.f04a8c67ed87989d9513.js:1)
    at Q (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.addControl (main-es2015.f04a8c67ed87989d9513.js:1)
    at t._setUpControl (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.ngOnChanges (main-es2015.f04a8c67ed87989d9513.js:1)
    at t.Xa.t.type.ngOnChanges.t.onChanges (main-es2015.f04a8c67ed87989d9513.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
main-es2015.f04a8c67ed87989d9513.js:1 ERROR TypeError: Cannot read property 'forEach' of undefined
    at t.ngOnInit (12-es2015.10e58901aa650821c111.js:1)
    at We (main-es2015.f04a8c67ed87989d9513.js:1)
    at He (main-es2015.f04a8c67ed87989d9513.js:1)
    at Be (main-es2015.f04a8c67ed87989d9513.js:1)
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
    at ss (main-es2015.f04a8c67ed87989d9513.js:1)
    at main-es2015.f04a8c67ed87989d9513.js:1
Mi @ main-es2015.f04a8c67ed87989d9513.js:1
handleError @ main-es2015.f04a8c67ed87989d9513.js:1
(anonymous) @ main-es2015.f04a8c67ed87989d9513.js:1
invoke @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
run @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
runOutsideAngular @ main-es2015.f04a8c67ed87989d9513.js:1
tick @ main-es2015.f04a8c67ed87989d9513.js:1
(anonymous) @ main-es2015.f04a8c67ed87989d9513.js:1
invoke @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
onInvoke @ main-es2015.f04a8c67ed87989d9513.js:1
invoke @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
run @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
run @ main-es2015.f04a8c67ed87989d9513.js:1
next @ main-es2015.f04a8c67ed87989d9513.js:1
n @ main-es2015.f04a8c67ed87989d9513.js:1
__tryOrUnsub @ main-es2015.f04a8c67ed87989d9513.js:1
next @ main-es2015.f04a8c67ed87989d9513.js:1
_next @ main-es2015.f04a8c67ed87989d9513.js:1
next @ main-es2015.f04a8c67ed87989d9513.js:1
next @ main-es2015.f04a8c67ed87989d9513.js:1
emit @ main-es2015.f04a8c67ed87989d9513.js:1
Hc @ main-es2015.f04a8c67ed87989d9513.js:1
Gc @ main-es2015.f04a8c67ed87989d9513.js:1
onInvokeTask @ main-es2015.f04a8c67ed87989d9513.js:1
invokeTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
runTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
invokeTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
h @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
p @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
load (async)
I @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
scheduleTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
onScheduleTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
scheduleTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
scheduleTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
scheduleEventTask @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
(anonymous) @ polyfills-es2015.ab51be9f5e7c175e6fde.js:1
(anonymous) @ main-es2015.f04a8c67ed87989d9513.js:1
_trySubscribe @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
o @ main-es2015.f04a8c67ed87989d9513.js:1
_innerSub @ main-es2015.f04a8c67ed87989d9513.js:1
_tryNext @ main-es2015.f04a8c67ed87989d9513.js:1
_next @ main-es2015.f04a8c67ed87989d9513.js:1
next @ main-es2015.f04a8c67ed87989d9513.js:1
(anonymous) @ main-es2015.f04a8c67ed87989d9513.js:1
_trySubscribe @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1
call @ main-es2015.f04a8c67ed87989d9513.js:1
subscribe @ main-es2015.f04a8c67ed87989d9513.js:1

plus a lot more as above.
pipiche
Posts: 1977
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by pipiche »

Can you try to clear the cache ?


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: How to manipulate reported values?

Post by Kurtsejr »

Sorry no impact, if I clear the cache

/Kurt
ben92
Posts: 57
Joined: Thursday 14 August 2014 17:41
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

Re: How to manipulate reported values?

Post by ben92 »

HI,

Can u open the console when you are on the dashboard, hit Refresh buton.
Take a picture of the console tab and the network tab please.

on the network tab, you will see the data that passes between the plugin and your browser.
Check that the call to "plugin-stat" brings you data by clicking on the line and going to the preview tab.

On Chrome browser please.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest