Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solar clock switch type does not initialize - invalid automation switch #23

Open
pslogic opened this issue Aug 9, 2019 · 0 comments
Open

Comments

@pslogic
Copy link

pslogic commented Aug 9, 2019

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'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant