HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Dimmer Lights: Can't toggle light on if no previous brightness. FW & CC issue #71

Closed Stupco closed 7 months ago

Stupco commented 3 years ago

Version of the custom_component

0.6.2

Configuration

N/A, configure using card entity frontend.

Describe the bug

IF turning on light for first time since restart, HA will not turn on light on as there was no previous brightness known.

Occurs after resetting both HA and Plate.

Debug log

HA Log:

2021-08-31 16:01:46 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'brightness' when rendering '{{ states.light.b3_lights.attributes.brightness }}'

Telnet Log:

[08:03:13.770][96656/99960  3][35304/35520  1] MQTT RCV: hasp/b3/command/output12 = {"state": true, "brightness": 0}
[08:03:13.776][96656/98308  1][35304/35520  1] GPIO: Dimmer => ef 02 00 ed
[08:03:13.781][95104/96376  1][35304/35520  1] MSGR: GROUP 1 value 0 (0-255)
[08:03:13.791][93552/94636  1][35304/35520  1] MQTT PUB: output12 => {"state":"off","brightness":0}

OpenHASP

https://github.com/HASwitchPlate/openHASP/issues/212

Stupco commented 3 years ago

Have been asked to raise this in the OpenHASP repo: https://github.com/HASwitchPlate/openHASP/issues/212

Stupco commented 3 years ago

I shouldn't have closed issue as per comment from @nagyrobi: "Yes. I think needs mods in both fw and cc @dgomes"

nagyrobi commented 3 years ago

Related to https://github.com/HASwitchPlate/openHASP-custom-component/issues/56