I need some guidance to start solving my problem, so help me find a correct way to program an automation I wish to make:
Switch mains power for a charger, Start with a momentary button, cut power based on time and or power usage.
The first attempts were made with a smart socket ( zigbee TS011F by _TZ3000_okaz9tjs ) where the input switch in integrated and is a momentary or pulse switch.
Now I am moving it all to my shed and try to do it with a zigbee TS0001 by _TZ3000_gjrubzje with a wired input switch.
I experience that the device reads the wired input switch as 2 events, start and stop, and hence not long enough to be usefull for charging.
I remember this was different when I used the hardware with a tuya type of app, and I could program the switch to accept a click/clack as a pulse to trigger its relay to switch to the other state.
So where should I find my solution:
- different hardware, something more like the smart socket.
- new firmware, because the zigbee TS0001 can do it bus must be persuaded to do what I need
- In software/programming because I am overlooking capabilities of HA.
Please point out what is the best practice and why, as we all need to learn.
BTW, A zigbe remote like the TS0043 by _TZ3000_sj7jbgks helps, but is not preferred as it is not as rugged as regular switch screwed down to the wall.
The TS0001 does not report power consumption, so I reverted to time based ending the charge cycle for the time being.
The build-in input switch in the TS0001 is not sufficient/safe enough to be operated by rainsoaked kids in the shed.
Looking forward to good hints en referrals to existing solutions and relevant information.