hi to all, i configured a shelly rgbw2 in mqtt:
light:
- name: "Luce sala"
unique_id: "luce_sala"
schema: template
command_topic: "shellies/luce_sala/white/0/set"
state_topic: "shellies/luce_sala/white/0/status"
availability_topic: "shellies/luce_sala/online"
payload_available: "true"
payload_not_available: "false"
retain: false
command_on_template: >
{"turn": "on"
{%- if brightness is defined -%}
, "brightness": {{brightness | float | multiply(0.3922) | round(0)}}
{%- endif -%}
{%- if red is defined and green is defined and blue is defined -%}
, "red": {{ red }}, "green": {{ green }}, "blue": {{ blue }}
{%- endif -%}
{%- if white_value is defined -%}
, "white": {{ white_value }}
{%- endif -%}
{%- if effect is defined -%}
, "effect": {{ effect }}
{%- endif -%}
}
command_off_template: '{"turn":"off"}'
state_template: "{% if value_json.ison %}on{% else %}off{% endif %}"
brightness_template: "{{ value_json.brightness | float | multiply(2.55) | round(0) }}"
qos: 2
everything works correctly except that the light in question is seen in the list of entities and not of devices.
am i missing something in the configuration or is it not possible to add it as devices?
thanks to all