asantaga / wiserHomeAssistantPlatform

Platform and related climate/sensors to support the Drayton Wiser Home Heating System
MIT License
227 stars 43 forks source link

SmartPlug : Add Auto/Manual Mode Swtich #63

Closed asantaga closed 4 years ago

asantaga commented 4 years ago

within the smartplug data set the ManualState attribute is toggled to indicate manual or schedule mode

[ { "id": 15, "ScheduleId": 2000, "ManualState": "Off", "Name": "Smartplug", "Mode": "Manual", "AwayAction": "Off", "OutputState": "Off", "ControlSource": "FromManualMode", "ScheduledState": "Off" } ]

Mode toggles from Manual to Auto

Enhancement Add controls to SmartPlug Implementation to cover this. Future Enh would be to set custom schedules using API (if people need it)

asantaga commented 4 years ago

Code implemented in wiser-heating-api and now partially implemented in R1.9Dev.

Need to implement a service to allow it to work

gotta go to bed now , so will do later this week.

asantaga commented 4 years ago

delayed due to weekend storm

scooper1 commented 4 years ago

i hope not too much damage

asantaga commented 4 years ago

Hey @scooper1 , a few hangin tiles from the roof went awol and smashed into the lower kitchen pitch roof.. Ive fixed the pitch roof but getting someone out to fix the hanging tiles...

asantaga commented 4 years ago

This is now implemented in R1.9Dev

Also implemented service to set the "Mode" of the smartplug, The service payload is

entity_id :  switch.smartplugName 
plug_mode : Auto

There's a bug affecting all services where the documentation isnt showing.... logging a separate one for this