{"id":25862202,"url":"https://github.com/devopsmariocom/raspberrypi-thermostat-mqtt-switch-homeassistant","last_synced_at":"2026-05-06T16:10:37.737Z","repository":{"id":66824915,"uuid":"165518901","full_name":"devopsmariocom/raspberrypi-thermostat-mqtt-switch-homeassistant","owner":"devopsmariocom","description":" Raspberry PI Docker Image managing relay using MMQT for Home Assistant Generic Thermostat","archived":false,"fork":false,"pushed_at":"2019-01-14T06:09:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T00:07:19.076Z","etag":null,"topics":["homeassistant","raspberry-pi","thermostat"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devopsmariocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-13T15:04:12.000Z","updated_at":"2019-07-24T05:28:06.000Z","dependencies_parsed_at":"2023-06-25T23:42:43.035Z","dependency_job_id":null,"html_url":"https://github.com/devopsmariocom/raspberrypi-thermostat-mqtt-switch-homeassistant","commit_stats":null,"previous_names":["devopsmariocom/raspberrypi-thermostat-mqtt-switch-homeassistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devopsmariocom","download_url":"https://codeload.github.com/devopsmariocom/raspberrypi-thermostat-mqtt-switch-homeassistant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439470,"owners_count":19963097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["homeassistant","raspberry-pi","thermostat"],"created_at":"2025-03-01T23:49:25.391Z","updated_at":"2026-05-06T16:10:32.700Z","avatar_url":"https://github.com/devopsmariocom.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raspberrypi thermostat mqtt switch homeassistant\n\n Raspberry PI Docker Image managing relay using MMQT for Home Assistant Generic Thermostat\n\n\n## 1. On raspberry pi 3 start docker image \n\nCreate config file\n\n```yaml\nmqtt:\n  host: 192.168.0.221\n  port: 1883\n  user: \"\"\n  password: \"\"\n  topic_prefix: boiler_room\n  status_topic: status\n  status_payload_running: \"online\" \n  status_payload_stopped: \"offline\" \n  status_payload_dead: \"dead\"\n\ngpio_modules:\n  - name: raspberrypi\n    module: raspberrypi\n\ndigital_outputs:\n  - name: thermostat\n    module: raspberrypi\n    pin: 26\n    on_payload: \"on\"\n    off_payload: \"off\"\n    initial: low  # This optional value controls the initial state of the pin before receipt of any messages from MQTT. Valid options are 'low' and 'high'.\n    retain: no # This option value controls if the message is retained. Default is no.\n```\n\nStart docker container\n\n$ `docker run -n thermostat_switch --privileged -d -v /srv/config.yml:/srv/config.yml elmariofredo/raspberrypi-thermostat-mqtt-switch-homeassistant:arm32v7-0.1`\n\n## 2. Add switch config to homeassistant `configuration.yaml` file\n\n```yaml\nswitch:\n  - platform: mqtt\n    name: thermostat\n    state_topic: \"boiler_room/output/thermostat\"\n    availability_topic: \"boiler_room/status\"\n    command_topic: \"boiler_room/output/thermostat/set\"\n    payload_on: \"on\"\n    payload_off: \"off\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsmariocom%2Fraspberrypi-thermostat-mqtt-switch-homeassistant/lists"}