yoni3210
(yoni mo)
October 30, 2019, 7:11pm
1
Hi All,
i have an issue with a sensor configured, when the state changed from off to on, the color of the entity is not changing to yellow, it’s remain the same.
This is the code under sensor: in configuration.yaml
- platform: template
sensors:
sensor_40:
friendly_name: 'Hp Printer'
value_template: "{% if is_state('device_tracker.c4_65_16_69_73_c0', 'home') %}on{% else %}off{% endif %}"
i also configured under customize: the class of the device to power:
sensor.sensor_40:
device_class: power
screenshot of the entity:
Any idea why it’s not working?
Tinkerer
(aka DubhAd on GitHub)
October 30, 2019, 7:34pm
2
Only binary_sensor
entities change color
yoni3210
(yoni mo)
October 30, 2019, 8:47pm
3
Thank you! Can you share where it’s written?
Tinkerer
(aka DubhAd on GitHub)
October 30, 2019, 8:54pm
4
In your binary_sensor
config instead of your sensor
config
yoni3210
(yoni mo)
October 31, 2019, 5:45pm
5
@Tinkerer tried still not working would you mind help with code?
@yoni3210
other question how did you create the sensor printed pages?
Tinkerer
(aka DubhAd on GitHub)
October 31, 2019, 10:28pm
7
Tried… what?
binary_sensor:
- platform: template
sensors:
sensor_40:
friendly_name: 'HP Printer'
value_template: "{{ if is_state('device_tracker.c4_65_16_69_73_c0', 'home') }}"
But see the docs - you can’t have multiple binary_sensor:
lines.
yoni3210
(yoni mo)
November 1, 2019, 11:56am
8
follow this thread, there is a script pulling the data
@hijinx , looks amazing i tried using the card, and i get the following :
code:
- type: custom:vertical-stack-in-card
title: HP OfficeJet 3830
cards:
- type: custom:bar-card
columns: 3
direction: up
entities:
- color: Black
entity: sensor.ink_black_level
- color: Color
entity: senso…