klausmeyer / fritzbox-smarthome

🏡 💡 Ruby client for AVM Home Automation Interface
MIT License
6 stars 5 forks source link

Unify on off interface #32

Closed carpodaster closed 2 years ago

carpodaster commented 2 years ago

This change adds a common interface to devices with the simpleonoff_state property.

It moves the #active? and #toggle! from Lightbulb (added in https://github.com/klausmeyer/fritzbox-smarthome/pull/31) to a module that is now also included by Switch

klausmeyer commented 2 years ago

:rocket: https://rubygems.org/gems/fritzbox-smarthome/versions/0.5.0