Shelly Dimmer 2

Posted on
Tue Mar 22, 2022 3:15 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Shelly Dimmer 2

Hi Aaron,

Recently purchased a Dimmer 2 and just trying it out. Getting the following in the log.
Code: Select all
   Error                           device "Dimmer Sit Room" state key curEnergyLevel not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)

Seems to be working happily all the same.
Screenshot from MQTT Explorer for additional info.

Colly
Attachments
Screenshot 2022-03-22 at 21.14.23.png
Screenshot 2022-03-22 at 21.14.23.png (42.58 KiB) Viewed 2594 times

Posted on
Tue Mar 22, 2022 3:43 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Dimmer 2

Colly wrote:
Hi Aaron,

Recently purchased a Dimmer 2 and just trying it out. Getting the following in the log.
Code: Select all
   Error                           device "Dimmer Sit Room" state key curEnergyLevel not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)

Seems to be working happily all the same.
Screenshot from MQTT Explorer for additional info.

Colly


Hi Colly,

I'm not sure how that got missed, but I don't have the energy states defined in the Indigo device for the dimmer. So when the energy values are processed and written to the energy states, the error is produced.

I will have to add this to my bug list for the next release. I did finally get a "next gen" device, so I am still working on the new API.

Thanks,
Aaron

Posted on
Tue Mar 22, 2022 3:54 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Aaron,

No problem at all
Just wiring up my i4 on the test bench so ready when you are. :)
Colly

Posted on
Sat Apr 30, 2022 8:49 am
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Dimmer 2

Are you still having issues with this? I have been unable to reproduce this with the output you have shown from MQTT Explorer.

Posted on
Sat Apr 30, 2022 2:27 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Yes, still happening. See log entry in last few mins.Image


Sent from my iPhone using Tapatalk

Posted on
Sat Apr 30, 2022 2:39 pm
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shelly Dimmer 2

Colly wrote:
Yes, still happening. See log entry in last few mins.


Sent from my iPhone using Tapatalk


Try editing and saving the device. Sometimes that fixes state key issues.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Apr 30, 2022 2:45 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

No joy unfortunately.

Posted on
Sat Apr 30, 2022 2:54 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Dimmer 2

Colly wrote:
Yes, still happening. See log entry in last few mins.Image


Sent from my iPhone using Tapatalk


Can you confirm if you are running the latest version of the plugin (0.7.1)?

Posted on
Sat Apr 30, 2022 2:57 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Yes running 0.7.1

Posted on
Sat Apr 30, 2022 3:18 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Dimmer 2

Colly wrote:
Yes running 0.7.1


Ah I figured it out. I'm still running Indigo 7.4.1 on a 2007 Mac mini :shock: . It looks like the property "SupportsEnergyMeterCurPower" was renamed to "SupportsPowerMeter" and I didn't notice.

The latest code (https://github.com/AaronLionsheep/Shell ... /0.7.2.zip) should have this new property included. Please give that a try and let me know if that solves everything. You will probably have to open the device configuration and save it to apply the property to the device.

Posted on
Sat Apr 30, 2022 3:20 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

:wink: I'll give that a try and let you know how I get on.

Posted on
Sat Apr 30, 2022 3:36 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Unfortunately still not resolved:
Code: Select all
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)

Although I do see a change from previous, the entry below is not appearing at the moment:
Code: Select all
   Error                           device "Dimmer Sit Room" state key curEnergyLevel not defined (ignoring update request)

Posted on
Sat Apr 30, 2022 3:45 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Dimmer 2

Colly wrote:
Unfortunately still not resolved:
Code: Select all
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)

Although I do see a change from previous, the entry below is not appearing at the moment:
Code: Select all
   Error                           device "Dimmer Sit Room" state key curEnergyLevel not defined (ignoring update request)


Did you also open the device config and resave? That was the only change I was able to find.

Posted on
Sat Apr 30, 2022 3:50 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Yes opened and changed a parameter and resaved. Also reloaded the plugin after that.

Posted on
Tue Aug 16, 2022 2:37 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Dimmer 2

Hi Aaron,
Any chance you could take a look at this error in a future update? Bit of a nuisance in the log. Get it every 30 secs or so :roll:
Code: Select all
16 Aug 2022 at 21:35:51
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)
   Error                           device "Dimmer Sit Room" state key accumEnergyTotal not defined (ignoring update request)

Thanks
Colly

Who is online

Users browsing this forum: No registered users and 1 guest