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

support custom screens / rooms #57

Merged
merged 15 commits into from
Jun 5, 2023
Merged

support custom screens / rooms #57

merged 15 commits into from
Jun 5, 2023

Conversation

landonr
Copy link
Owner

@landonr landonr commented Jun 2, 2023

add support for multiple custom screens. Screens can show Switches, Lights, Sensors, Text Sensors and Commands currently

this is way cleaner than grouping all the domains together. i am pretty stoked

I also fixed the menu so going back goes BACK instead of always to the root menu.

config:

homeThing:
  screens:
    - name: Desk Screen
      entities:
        - type: command
          name: "desk nudge up"
          command:
            - homeassistant.service:
                service: button.press
                data:
                  entity_id: "button.desk_position_nudge_up"
        - type: command
          name: "desk nudge down"
          command:
            - homeassistant.service:
                service: button.press
                data:
                  entity_id: "button.desk_position_nudge_down"
        - id: light_desk_lamp
          type: light
    - name: Settings Screen
      show_version: True
      entities:
        - id: "restart_switch"
          type: switch
        - id: wifi_ssid
          type: text_sensor
        - id: wifi_signal_percent
          type: sensor
        - id: wifi_ip
          type: text_sensor

text_sensor:
  - platform: wifi_info
    ip_address:
      name: IP Address
      internal: True
      id: wifi_ip
    ssid:
      name: SSID
      internal: True
      id: wifi_ssid

sensor:
  - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
    name: "WiFi Signal dB"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: "diagnostic"
    internal: True

  - platform: copy # Reports the WiFi signal strength in %
    source_id: wifi_signal_db
    name: "WiFi Signal %"
    id: wifi_signal_percent
    internal: True
    filters:
      - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
    unit_of_measurement: "Signal %"
    entity_category: "diagnostic"

Screenshot 2023-06-02 at 11 17 44 AM
Screenshot 2023-06-02 at 11 17 40 AM
Screenshot 2023-06-02 at 11 17 36 AM

@landonr landonr merged commit 1d4c952 into main Jun 5, 2023
7 checks passed
@landonr landonr deleted the lando/rooms branch June 5, 2023 14:09
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

Successfully merging this pull request may close these issues.

None yet

1 participant