@ozarn wrote:
Hello everyone,
Can you please help me solve this riddle i’ve been battling all weekend?If i use following format in my sensors.yaml file everything is working fine
platform: template sensors: front_yard_motion_sensor_battery: friendly_name: Front Yard Motion Sensor Battery Level unit_of_measurement: '%' value_template: "{{ state_attr('zwave.zooz_zse29_outdoor_motion_sensor_2', 'battery_level') }}" device_class: battery
binary_sensor.yaml:
platform: template sensors: front_yard_motion_sensor: friendly_name: "Front Yard Motion Sensor" device_class: motion value_template: "{{ is_state('sensor.front_yard_motion_sensor_burglar_2', '8') }}"
if i try to change it to:
- platform: template sensors: front_yard_motion_sensor_battery: friendly_name: Front Yard Motion Sensor Battery Level unit_of_measurement: '%' value_template: "{{ state_attr('zwave.zooz_zse29_outdoor_motion_sensor_2', 'battery_level') }}" device_class: battery
My Zwave network does not comes up & all zwave devices are in unkown state. If i revert the format back and restart HA, everything is back to normal and working.
Can you please tell me what i am doing wrong? I am a novice HA user & trying to add more sensors/devices & it seems i have to use "- platform: " name format for additional devices.
Also can somebody explain to me if its better to use one big file for all my sensors or start using folder called sensors and individual file for each sensor/device (Pros and Cons)? Or if you could point me to documentation where his is explain. I was not able to find it.
Thank you very much!
Posts: 8
Participants: 3