Normally I would try and figure this all out and then ask questions to fill in the blanks, but I just got off a 12hr shift and I am tired and the attempts I have made so far have failed. So I will ask for help this time with the intention of getting a full blown example I can follow. The ones in the documentation have not made a lot of sense and don’t seem to be geared towards stepping you from a beginner simple automation to more complex ones.
Here is what I have:
First, my sole door sensor:
group.doors_sensors
{
“entity_id”: [
“binary_sensor.aeotec_zw112_door_window_sensor_6_sensor_3”
],
“friendly_name”: “Doors Sensors”,
“order”: 1
}
Second, my sole smart switch:
group.switches
{
“entity_id”: [
“switch.aeotec_zw096_smart_switch_6_switch_4”,
“sensor.aeotec_zw096_smart_switch_6_voltage_4”,
“sensor.aeotec_zw096_smart_switch_6_power_4”,
“sensor.aeotec_zw096_smart_switch_6_energy_4”,
“sensor.aeotec_zw096_smart_switch_6_current_4”,
“sensor.aeotec_zw096_smart_switch_6_previous_reading_4”
],
“friendly_name”: “Switches”,
“order”: 6
}
All I am trying to do, in order to learn how to do this, is take the door sensor and when the door is opened, turn on the smart switch, which has a single lamp plugged into it. When the door is closed, the sensor registers off, open, on. I can manually turn on and off the lamp inside HA, so I know that part works. I just cannot get it to trigger from the door sensor.
I hate to be so lazy as part of the fun for me is learning this (though it is frustrating at times), but the documentation is just not that helpful.
So can anyone give me an idea of how this should be coded? Again, I apologize for seeming lazy, but after a 12hr shift I am going to avoid beating my head on my desk and instead lay it on a pillow, LOL.