grover/homebridge-automation-switches

solar clock switch type does not initialize - invalid automation switch

Opened this issue · 0 comments

followed the example found here

in my config.json:

        {
            "platform": "AutomationSwitches",
            "switches": [
                {
                    "type": "automation",
                    "name": "Wakeup HTPC",
                    "period": 3,
                    "autoOff": true
                },
                {
                    "type": "solarclock",
                    "name": "Sunrise",
                    "location": {
                        "latitude": 40,
                        "longitude": -100
                    },
                    "period": "sunrise",
                    "enabled": true
                },
                {
                    "type": "solarclock",
                    "name": "Sunset",
                    "location": {
                        "latitude": 40,
                        "longitude": -100
                    },
                    "period": "sunset",
                    "enabled": true
                }
            ]
        },

output from /home/pi/.pm2/logs/homebridge-out.log

2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Initializing AutomationSwitches platform...
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] AutomationSwitchesPlatform Plugin Loaded - Version 3.2.1
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Wakeup HTPC"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Sunrise"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Invalid automation switch - type is unknown: { type: 'solarclock',
2|homebrid |   name: 'Sunrise',
2|homebrid |   location: { latitude: 40, longitude: -100 },
2|homebrid |   period: 'sunrise',
2|homebrid |   enabled: true }
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Skipping.
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Found automation switch in config: "Sunset"
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Invalid automation switch - type is unknown: { type: 'solarclock',
2|homebrid |   name: 'Sunset',
2|homebrid |   location: { latitude: 40, longitude: -100 },
2|homebrid |   period: 'sunset',
2|homebrid |   enabled: true }
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Skipping.
2|homebrid | [8/9/2019, 12:17:58 AM] [AutomationSwitches] Initializing platform accessory 'Wakeup HTPC'...