Sonoff bulb B02-B cannot read attributes

I have Sonoff WiFi bulb B02-B integrated into HA with this eWeLink Smart Home Add-on.It was easy to setup and basics are working fine.
Now when I want to build some automation (read brighness value and change it) with this bulb I am facing challenges:

  1. Cannot read brightness attribute.
    In Developing tools I can see the entity related to this bulb is light.10010aaa88 and when I put the following into templating tool (from Developer tools):
Sonoff bulb {{ states.light.10010aaa88 }}

I am getting the following message:

TemplateSyntaxError: expected token 'end of print statement', got 'aaa88'

It looks like HA does not like the name 10010aaa88 and is expecting something different after 10010?
Other z-wave light as a good example works well:

Z-wave light {{ states.light.single_paddle_wall_dimmer.attributes.brightness }}

result is : Z-wave light 106

  1. When trying to change the brightness with the following service:
service: light.turn_on
target:
  entity_id: light.10010aaa88
data:
  brightness_step: 108

nothing happens except the entry in logs:

Logger: homeassistant.helpers.service
Source: helpers/service.py:128
First occurred: 10:35:05 (57 occurrences)
Last logged: 17:38:23

Unable to find referenced entities light.10010aaa88

Any idea what is wrong ?

1 Like