I have several Homematic IP devices, e.g. a HmIP-SWDO-I (but the following is the same for all devices until now). If I want to template.
{{ states.light.wohnzimmer }}
results in <template TemplateState(<state light.wohnzimmer=off; supported_color_modes=[‘onoff’], is_hue_group=True, friendly_name=Wohnzimmer, supported_features=40 @ 2021-08-05T22:16:14.018204+02:00>)>
but for all HMIP devices it is throwing an error:
{{ states.binary_sensor.0815_state }}
results everywhere TemplateSyntaxError: expected token ‘end of print statement’, got ‘integer’
If I open in developer menu, e.g. light brings:
Copy to clipboard
min_mireds: 153
max_mireds: 500
effect_list:
- colorloop
- random
supported_color_modes:
- color_temp
- hs
is_hue_group: true
friendly_name: Ablage
supported_features: 63
whereas HMIP-entities bring
Copy to clipboard
id: abc
interface: ip
battery: High
sabotage: 'No'
rssi_device: -75
voltage: 1.5
friendly_name: Test
icon: mdi:window-closed-variant
which is not that different, that I can see, why states. etc. is not working.
Is there someting wrong with this integration or with the template engine or where is my mistake?