├── .gitignore ├── po ├── fr.mo ├── hass-gshell.pot ├── es.po ├── sk.po ├── de.po └── fr.po ├── icons ├── hass-blue.png ├── secondary.png ├── media-player.svg ├── script-text.svg ├── run.svg ├── palette.svg ├── ceiling-light.svg ├── hass-symbolic.svg ├── toggle-switch-outline.svg └── fan.svg ├── schemas ├── gschemas.compiled └── org.gnome.shell.extensions.hass-data.gschema.xml ├── screenshots ├── hass_events.png ├── panel_icons.png ├── panel_menu.png ├── panel_menu_40.png ├── general_settings.png ├── hass_events_40.png ├── panel_icons_40.png ├── preferences_menu.png ├── togglable_settings.png └── preferences_menu_up.png ├── .eslintrc.json ├── stylesheet.css ├── chromecast └── endpoints.txt ├── metadata.json ├── settings.js ├── README.md ├── prefs.js ├── extension.js └── utils.js /.gitignore: -------------------------------------------------------------------------------- 1 | data/ 2 | myextensions.code-workspace 3 | locale -------------------------------------------------------------------------------- /po/fr.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/po/fr.mo -------------------------------------------------------------------------------- /icons/hass-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/icons/hass-blue.png -------------------------------------------------------------------------------- /icons/secondary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/icons/secondary.png -------------------------------------------------------------------------------- /schemas/gschemas.compiled: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/schemas/gschemas.compiled -------------------------------------------------------------------------------- /screenshots/hass_events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/hass_events.png -------------------------------------------------------------------------------- /screenshots/panel_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/panel_icons.png -------------------------------------------------------------------------------- /screenshots/panel_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/panel_menu.png -------------------------------------------------------------------------------- /screenshots/panel_menu_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/panel_menu_40.png -------------------------------------------------------------------------------- /screenshots/general_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/general_settings.png -------------------------------------------------------------------------------- /screenshots/hass_events_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/hass_events_40.png -------------------------------------------------------------------------------- /screenshots/panel_icons_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/panel_icons_40.png -------------------------------------------------------------------------------- /screenshots/preferences_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/preferences_menu.png -------------------------------------------------------------------------------- /screenshots/togglable_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/togglable_settings.png -------------------------------------------------------------------------------- /screenshots/preferences_menu_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geoph9/hass-gshell-extension/HEAD/screenshots/preferences_menu_up.png -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es2021": true 5 | }, 6 | "extends": "eslint:recommended", 7 | "parserOptions": { 8 | "ecmaVersion": "latest" 9 | }, 10 | "rules": { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /stylesheet.css: -------------------------------------------------------------------------------- 1 | .bg-color { 2 | background-color : gold; 3 | } 4 | 5 | .hass-sensor-tooltip { 6 | background-color : black; 7 | color: white; 8 | padding: 0.4em; 9 | border-radius: 0.5em; 10 | font-size: 0.9em; 11 | font-weight: 600; 12 | opacity: 0; 13 | } 14 | -------------------------------------------------------------------------------- /icons/media-player.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /icons/script-text.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /icons/run.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /chromecast/endpoints.txt: -------------------------------------------------------------------------------- 1 | # Example: 2 | curl -X POST -d '{"entity_id": "media_player.tv_name"}' http://URL/api/services/media_player/media_play_pause 3 | 4 | media_play 5 | media_pause 6 | media_play_pause 7 | media_stop 8 | media_next_track 9 | media_previous_track 10 | 11 | media_seek (entity_id PLUS seek_position:int) 12 | 13 | select_sound_mode 14 | 15 | volume_up 16 | volume_down 17 | volume_set 18 | volume_mute 19 | 20 | turn_on 21 | turn_off 22 | toggle 23 | 24 | 25 | -------------------------------------------------------------------------------- /icons/palette.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "_generated": "Generated by SweetTooth, do not edit", 3 | "description": "A simple gnome shell extension for Home Assistant. Check the README on github for additional help!\n\nMain points:\n- You need to provide the url of your hass, a long live access token obtained from your profile page (on your hass web instance) and the entity ids of the entities you want to have as togglable.\n- In order to add some local temperature/humidity sensor, you may also provide a temperature and/or a humidity entity id (which should match the corresponding ids of your hass instance).", 4 | "gettext-domain": "hass-gshell", 5 | "name": "Home Assistant Extension", 6 | "settings-schema": "org.gnome.shell.extensions.hass-data", 7 | "shell-version": ["45", "46", "47", "48", "49"], 8 | "url": "https://github.com/geoph9/hass-gshell-extension", 9 | "uuid": "hass-gshell@geoph9-on-github", 10 | "version": 26.1 11 | } 12 | -------------------------------------------------------------------------------- /icons/ceiling-light.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 34 |