fauxmo - (servercontainers/fauxmo) python3 / pip version of n8henrie + plugins on alpine [x86 + arm]
3.0K
fauxmo - fauxmo pip releases on alpine
This is a container running the pip release of https://github.com/n8henrie/fauxmo.
It also has a cloned repo of https://github.com/n8henrie/fauxmo-plugins beneath /fauxmo-plugins included.
you can take a look at this docker-compose.yml to see it in action.
IMPORTANT: Dockers network_mode: host should be used to make it visible inside your network
TODO: currently there are only 2 Plugins configurable using Environment Variables - if you like to seem more, take a look at my scripts/entrypoint.sh file and implement others - I'm happy to merge pull requests
/etc/fauxmo/config.json supportCommandLinePlugin supportHomeAssistantPlugin supportYou have two options using this container:
/etc/fauxmo/config.json file inside the container/etc/fauxmo/config.jsonjust use a existing fauxmo config.json which fits your needs and mount/pass it into the container to the location: /etc/fauxmo/config.json
you can take a look at my docker-compose.yml to see it in action.
multiple plugins can be used together.
Note: you need to take care of , after multiple DEVICE envs!
this one just needs one or more devices, no general config needed
CommandLinePlugin,!mydevicename FAUXMO_PLUGIN_COMMANDLINE_DEVICE_1_stuff_to_file: ' { "name": "output stuff to a file", "port": 49915, "on_cmd": "touch testfile.txt", "off_cmd": "rm testfile.txt", "state_cmd": "ls testfile.txt" }'FAUXMO_PLUGIN_HOMEASSISTANT_CONFIG
HomeAssistantPlugin,!ha_token parameter, which you can generate in the web interface at the /profile homeassistant endpoint.'"ha_host": "192.168.0.50", "ha_port": 8123, "ha_protocol": "http", "ha_token": "abc123",'FAUXMO_PLUGIN_HOMEASSISTANT_DEVICE_1mydevicename
HomeAssistantPlugin,!mydevicename FAUXMO_PLUGIN_HOMEASSISTANT_DEVICE_1_my_fake_switch: ' { "name": "example Home Assistant device 1", "port": 12345, "entity_id": "switch.my_fake_switch" },' FAUXMO_PLUGIN_HOMEASSISTANT_DEVICE_2_my_fake_cover: ' { "name": "example Home Assistant device 2", "port": 12346, "entity_id": "switch.my_fake_cover" }'Content type
Image
Digest
sha256:1fda15785…
Size
24.9 MB
Last updated
2 months ago
docker pull servercontainers/fauxmo