I have a Clipsal C-Bus system that I have got talking to HA via MQTT light and works great. Lights are switching on and off and the HA dashboard updates when lights are switched from the wall switch.
My config/light.yaml has been done like this -
- platform: mqtt
name: 'Alfresco'
command_topic: "cbus/write/254/56/37/switch"
state_topic: "cbus/read/254/56/37/state"
payload_on: "ON"
payload_off: "OFF"
retain: true
Now across to HADashboard, I have setup my dash middle panel like this -
office_light:
widget_type: light
title: Office Light
enitiy: light.office
icon_on: fa-lightbulb-o
icon_off: fa-lightbulb-o
on_attributes:
brightness: 100
But no luck - I get the dreaded āError getting state, check Java Console for detailsā when the page loads.
On the HA logs -
Error executing service <ServiceCall homeassistant.turn_on: entity_id=>
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/__init__.py", line 116, in async_handle_turn_service
entity_ids = extract_entity_ids(hass, service)
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 105, in extract_entity_ids
return group.expand_entity_ids(hass, [service_ent_id])
File "/usr/lib/python3.6/site-packages/homeassistant/components/group/__init__.py", line 204, in expand_entity_ids
domain, _ = ha.split_entity_id(entity_id)
ValueError: not enough values to unpack (expected 2, got 1)
Also tried switch, but received the same error. Any guidance from the gurus would be greatly appreciated as it will not doubt be something obvious that I am missing.