falconchristmas / fpp-homeassistant Goto Github PK
View Code? Open in Web Editor NEWPlugin to use Home Assistant MQTT discovery to easily integrate FPP and Home Assistant
License: GNU General Public License v2.0
Plugin to use Home Assistant MQTT discovery to easily integrate FPP and Home Assistant
License: GNU General Public License v2.0
FPP Sensors, such as CPU Temperature, should support specifying a device_class
.
Adding a https://www.home-assistant.io/integrations/sensor.mqtt/#device block to the MQTT config JSON will allow linking/association of entities in Home Assistant as well as a richer configuration UI.
There seems to be missing boxes and setting after upgrading FPP to 5.0 or higher making it unusable.
I have FPP and HomeAssistant (and Zigbee and Zwave and Yi etc) configured to utilize the homeassistant topic on my server. However, rather than publishing to /homeassistant/light, this plugin appears instead to be publishing to /homeassistant/falcon/player/ha/light
Am I missing a configuration setting somewhere? I was really hoping this would be a good option for controlling my house-mounted lights when I'm not running a show.
FPP Version and Hardware:
FPP 7.1 running on multiple Kulp controllers
Describe the bug
In the Home Assistant plugin page, the temp and VIN sensors do not show up in the UI so there is no way to enable/configure those sensors.
Reproduce:
Load the plugin, restart/reboot FPP, access the HA plugin page and the overlays/GPIO are listed but the cape sensors are not.
Per https://www.home-assistant.io/integrations/sensor/#device-class if device class is "None" then the device_class
attribute should not be set.
I entered the same MQTT information (username, password, ip, port) that works for all of my MQTT light switches in the MQTT section in FPP. No mention of the FPP ip in the HA mosquitto logs, as if FPP isnt even trying to connect. Running FPP on a pi 3 b+.
I would love to see the effects that Dan added to FPP with WLED .. to be able to be added to each device "entity" .
I know its all beta and a start but i think it would add greatness to lots of ppl
thanks for reading
love the ha plugin
Due to the HA MQTT configuration not being published with the retain
flag if Home Assistant is restarted the FPP entities setup by MQTT auto discovery will disappear.
Receiving "MQTT Is Not Connected, cannot configure Home Assistant Plugin" however MQTT is connected.
Logs from fppd: fppd.log
Looking at logs, it may be due to the plugin being initialized before MQTT:
2022-10-22 23:22:28.827 (1561) [General] /opt/fpp/src/fppd.cpp:694: Performing Restart.
--------SNIP---------
2022-10-22 23:22:29.268 (1561) [Plugin] src/FPP-HomeAssistant.cpp:31: Initializing Home Assistant Plugin
2022-10-22 23:22:29.270 (1561) [Plugin] src/FPP-HomeAssistant.cpp:58: MQTT Is Not Connected, cannot configure Home Assistant Plugin
----SNIP------
2022-10-22 23:22:30.184 (1561) [General] /opt/fpp/src/fppd.cpp:795: Checking MQTT
2022-10-22 23:22:30.185 (1561) [Control] /opt/fpp/src/mqtt.cpp:449: Mosquitto SetReady()
2022-10-22 23:22:30.185 (1561) [Control] /opt/fpp/src/mqtt.cpp:481: Mosquitto Connected.... Will Subscribe to Topics
2022-10-22 23:22:30.185 (1561) [Control] /opt/fpp/src/mqtt.cpp:509: MQTT HandleConnect Complete
2022-10-22 23:22:30.186 (1561) [General] /opt/fpp/src/fppd.cpp:803: Starting main processing loop
2022-10-22 23:22:33.185 (25741) [Control] /opt/fpp/src/mqtt.cpp:648: Starting Publish Thread with Frequency: 10**
I'm sure I'm doing something wrong. There is limited instructions though so I'm just assuming it's simple instructions and I have something configured wrong.
Under settings, my MQTT information is in there and on Home Assistant it shows MQTT is up and running and sees the IP address. When enabling the checkbox by the Overlay Models nothing happens. I click on the save HA config and nothing shows up in MQTT. It asks me to restart FPP and it disconnects from MQTT as expected and then reconnects when it comes back up. No Overlay Models show as entities or lights. I have restarted Home Assistant as well and it still doesn't show any new entities. I'm not sure what I'm doing wrong. It looks straightforward, but I can't get it to work.
FPP Version and Hardware:
FPP v6.3-1-gdbe9f8b3 running on BBB
Describe the bug
Discovered HA entity works as expected except it will not accept an Effect parameter in HA
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As I read it, I think the effect is supposed to be accessible via HA
Thanks!
I would like to see more sensors being reported. Like CPU Temperature and FPP IP Address and percentage of space remaing on SD card. Thanks
There don't appear to be any instructions on how to set this up.
I don't see anything odd in the Logs and I can't replicate it either. Can you uninstall FPPMon and the Home Assistant plugins (and any others that you might have) and see if you get the same behavior? If so, note the time that you clicked on the Re-Start FPP and let it sit for a while to see if it eventually comes back on. Do you have any outputs enabled that are not actually online? If it doesn't come back on, then note the time that you rebooted it and post the logs again so we can look at the times you took those actions. Thanks
Originally posted by @Poporacer in FalconChristmas/fpp#1730 (comment)
FPP 5.3
Raspberry Pi 4 2GB.
Installing Home assistant plugin prompts for restart of FPPD.
FPPD then stops and will not start again (even after full reboot of the Pi).
Steps taken:
My Home Assistant instance has also not found it.
Uninstalling the plugin resolves FPPD not starting issue.
My first guess is an issue with HA plugin requiring more to be downloaded when I hit 'restart fppd' in the banner.
Seems to be working well (many thanks).
But when I turn the light on and set the colour in Home Assistant, only the first 100 pixels (I'm guessing, didn't count them) light up, with the remainder of the string staying dark.
When I test the string in FPP, or play a sequence in FPP, the whole string works as expected, so not a set-up issue from that front I think.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.